Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Y-combinator/Maple/y-combinator.maple
Normal file
7
Task/Y-combinator/Maple/y-combinator.maple
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
> Y:=f->(x->x(x))(g->f((()->g(g)(args)))):
|
||||
> Yfac:=Y(f->(x->`if`(x<2,1,x*f(x-1)))):
|
||||
> seq( Yfac( i ), i = 1 .. 10 );
|
||||
1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800
|
||||
> Yfib:=Y(f->(x->`if`(x<2,x,f(x-1)+f(x-2)))):
|
||||
> seq( Yfib( i ), i = 1 .. 10 );
|
||||
1, 1, 2, 3, 5, 8, 13, 21, 34, 55
|
||||
Loading…
Add table
Add a link
Reference in a new issue