Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
function computeGamma (iterations, decimalPlaces)
|
||||
local Hn = 1
|
||||
for i = 2, iterations do
|
||||
Hn = Hn + (1/i)
|
||||
end
|
||||
local gamma = tostring(Hn - math.log(iterations))
|
||||
return tonumber(gamma:sub(1, decimalPlaces + 2))
|
||||
end
|
||||
|
||||
print(computeGamma(10^8, 8))
|
||||
Loading…
Add table
Add a link
Reference in a new issue