Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Gamma-function/Sidef/gamma-function-3.sidef
Normal file
11
Task/Gamma-function/Sidef/gamma-function-3.sidef
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
define e = Math.e;
|
||||
define pi = Math.pi;
|
||||
|
||||
func Γ(t) {
|
||||
t < 20 ? (__FUNC__(t + 1) / t)
|
||||
: (Math.sqrt(2*pi*t) * Math.pow(t/e + 1/(12*e*t), t) / t);
|
||||
}
|
||||
|
||||
for i in 1..10 {
|
||||
say ("%.14e" % Γ(i/3));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue