Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
12
Task/Gamma-function/Pluto/gamma-function.pluto
Normal file
12
Task/Gamma-function/Pluto/gamma-function.pluto
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
local fmt = require "fmt"
|
||||
require "math2"
|
||||
|
||||
local function stirling(x)
|
||||
return math.sqrt(2 * math.pi / x) * ((x / math.e) ^ x)
|
||||
end
|
||||
|
||||
print(" x\tStirling\t\tLanczos\n")
|
||||
for i = 1, 20 do
|
||||
local d = i / 10
|
||||
fmt.print("%4.2f\t%0.14f\t%0.14f", d, stirling(d), math.gamma(d))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue