Catalan numbers: Difference between revisions
Content added Content deleted
(→version 1: added/changed comments, indentations, and whitespace, simplified some subroutines and functions.) |
m (→version 1: mention the number of methods shown in the task's preamble.) |
||
Line 3,066: | Line 3,066: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
===version 1=== |
===version 1=== |
||
All methods use independent memoization for the computation of factorials. |
All four methods use independent memoization for the computation of factorials. |
||
<lang rexx>/*REXX program calculates and displays Catalan numbers using four different methods. */ |
<lang rexx>/*REXX program calculates and displays Catalan numbers using four different methods. */ |
||
parse arg LO HI . /*obtain optional arguments from the CL*/ |
parse arg LO HI . /*obtain optional arguments from the CL*/ |