Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Ackermann-function/Argile/ackermann-function.argile
Normal file
10
Task/Ackermann-function/Argile/ackermann-function.argile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use std
|
||||
|
||||
for each (val nat n) from 0 to 6
|
||||
for each (val nat m) from 0 to 3
|
||||
print "A("m","n") = "(A m n)
|
||||
|
||||
.:A <nat m, nat n>:. -> nat
|
||||
return (n+1) if m == 0
|
||||
return (A (m - 1) 1) if n == 0
|
||||
A (m - 1) (A m (n - 1))
|
||||
Loading…
Add table
Add a link
Reference in a new issue