Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,26 @@
' Bell numbers
DECLARE SUB DisplayRow (N%, BellNum&)
CONST MAXINDEX% = 14
DIM A&(MAXINDEX% - 1)
FOR I% = 0 TO MAXINDEX% - 1
A&(I%) = 0
NEXT I%
N% = 0
A&(0) = 1
DisplayRow N%, A&(0)
WHILE N% < MAXINDEX%
A&(N%) = A&(0)
FOR J% = N% TO 1 STEP -1
A&(J% - 1) = A&(J% - 1) + A&(J%)
NEXT J%
N% = N% + 1
DisplayRow N%, A&(0)
WEND
END
SUB DisplayRow (N%, BellNum&)
PRINT "B(";
PRINT USING "##"; N%;
PRINT ") = ";
PRINT USING "#########"; BellNum&
END SUB