2024-04-19 16:56:29 -07:00
|
|
|
e = 2.718281828459
|
|
|
|
|
func stirling x .
|
|
|
|
|
return sqrt (2 * pi / x) * pow (x / e) x
|
|
|
|
|
.
|
|
|
|
|
print " X Stirling"
|
|
|
|
|
for i to 20
|
|
|
|
|
d = i / 10
|
2025-06-11 20:16:52 -04:00
|
|
|
numfmt 4 2
|
2024-04-19 16:56:29 -07:00
|
|
|
write d & " "
|
2025-06-11 20:16:52 -04:00
|
|
|
numfmt 4 3
|
2024-04-19 16:56:29 -07:00
|
|
|
print stirling d
|
|
|
|
|
.
|