mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 14:50:52 +02:00
Code tidy and tweak
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user