Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,16 @@
function ack(atom m, atom n)
if m = 0 then
return n + 1
elsif m > 0 and n = 0 then
return ack(m - 1, 1)
else
return ack(m - 1, ack(m, n - 1))
end if
end function
for i = 0 to 3 do
for j = 0 to 6 do
printf( 1, "%5d", ack( i, j ) )
end for
puts( 1, "\n" )
end for

View file

@ -0,0 +1,12 @@
function ackermann(integer m, integer n)
if m=0 then return n+1
elsif m>0 and n=0 then return ackermann(m-1, 1)
elsif m>0 and n>0 then return ackermann(m-1, ackermann(m,n-1))
else return 0
end if
return 0
end function
? ackermann(0, 0)
? ackermann(3, 4)
? ackermann(3, 10)