Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Ackermann-function/Maple/ackermann-function-1.maple
Normal file
10
Task/Ackermann-function/Maple/ackermann-function-1.maple
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Ackermann := proc( m :: nonnegint, n :: nonnegint )
|
||||
option remember; # optional automatic memoization
|
||||
if m = 0 then
|
||||
n + 1
|
||||
elif n = 0 then
|
||||
thisproc( m - 1, 1 )
|
||||
else
|
||||
thisproc( m - 1, thisproc( m, n - 1 ) )
|
||||
end if
|
||||
end proc:
|
||||
1
Task/Ackermann-function/Maple/ackermann-function-2.maple
Normal file
1
Task/Ackermann-function/Maple/ackermann-function-2.maple
Normal file
|
|
@ -0,0 +1 @@
|
|||
thisproc
|
||||
16
Task/Ackermann-function/Maple/ackermann-function-3.maple
Normal file
16
Task/Ackermann-function/Maple/ackermann-function-3.maple
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Ackermann := proc( m :: nonnegint, n :: nonnegint )
|
||||
option remember; # optional automatic memoization
|
||||
if m = 0 then
|
||||
n + 1
|
||||
elif m = 1 then
|
||||
n + 2
|
||||
elif m = 2 then
|
||||
2 * n + 3
|
||||
elif m = 3 then
|
||||
8 * 2^n - 3
|
||||
elif n = 0 then
|
||||
thisproc( m - 1, 1 )
|
||||
else
|
||||
thisproc( m - 1, thisproc( m, n - 1 ) )
|
||||
end if
|
||||
end proc:
|
||||
2
Task/Ackermann-function/Maple/ackermann-function-4.maple
Normal file
2
Task/Ackermann-function/Maple/ackermann-function-4.maple
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> map2( Ackermann, 1, [seq]( 1 .. 10 ) );
|
||||
[3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
|
||||
2
Task/Ackermann-function/Maple/ackermann-function-5.maple
Normal file
2
Task/Ackermann-function/Maple/ackermann-function-5.maple
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> map2( Ackermann, 2, [seq]( 1 .. 10 ) );
|
||||
[5, 7, 9, 11, 13, 15, 17, 19, 21, 23]
|
||||
2
Task/Ackermann-function/Maple/ackermann-function-6.maple
Normal file
2
Task/Ackermann-function/Maple/ackermann-function-6.maple
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> length( Ackermann( 4, 2 ) );
|
||||
19729
|
||||
Loading…
Add table
Add a link
Reference in a new issue