Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Fib(n)={
|
||||
my(F=(k,f)->if(k<2,k,f(k-1,f)+f(k-2,f)));
|
||||
if(n<0,(-1)^(n+1),1)*F(abs(n),F)
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Fib(n)={
|
||||
my(F=k->my(f=self());if(k<2,k,f(k-1)+f(k-2)));
|
||||
if(n<0,(-1)^(n+1),1)*F(abs(n))
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue