Bell numbers: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added a comment in the REXX section header.)
Line 861: Line 861:


A little optimization was added in calculating the factorial of a number by using memoization.
A little optimization was added in calculating the factorial of a number by using memoization.

Also, see this task's   ''discussion''   to view how the sizes of Bell numbers increase in relation to its index.
<lang rexx>/*REXX program calculates and displays a range of Bell numbers (index starts at zero).*/
<lang rexx>/*REXX program calculates and displays a range of Bell numbers (index starts at zero).*/
parse arg LO HI . /*obtain optional arguments from the CL*/
parse arg LO HI . /*obtain optional arguments from the CL*/