Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,28 @@
sub ack(m, n)
if m=0 then
return n+1
elsif m=1 then
return n+2
elsif m=2 then
return 2*n+3
elsif m=3 then
return 2^(n+3)-3
elsif m>0 and n=0 then
return ack(m-1,1)
else
return ack(m-1,ack(m,n-1))
end if
end sub
sub Ackermann()
local i, j
for i=0 to 3
for j=0 to 10
print ack(i,j) using "#####";
next
print
next
print "ack(4,1) ";: print ack(4,1) using "#####"
end sub
Ackermann()