1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-29 12:50:24 +02:00

Updated farming

- Solves #238
This commit is contained in:
LeMagnesium
2015-08-24 16:44:20 +02:00
parent 645d3afa48
commit 96c5216e26
24 changed files with 696 additions and 573 deletions

View File

@ -16,7 +16,7 @@ erf = function(x)
if x == 0 then return 0; end
local xSq = x * x
local aXSq = A * xSq
local v = math.sqrt(1.0 - math.exp(-xSq * (B + aXSq)/(1.0 + aXSq)))
local v = math.sqrt(1.0 - math.exp(-xSq * (B + aXSq) / (1.0 + aXSq)))
return (x > 0 and v) or -v
end
@ -147,4 +147,4 @@ statistics.poisson = function(lambda, max)
return poisson(lambda, max)
end
return statistics
return statistics