Left factorials: Difference between revisions
Content added Content deleted
m (→{{header|RPL}}: typos) |
|||
Line 1,611: | Line 1,611: | ||
{{FormulaeEntry|page=https://formulae.org/?script=examples/Left_factorials}} |
{{FormulaeEntry|page=https://formulae.org/?script=examples/Left_factorials}} |
||
'''Solution''' |
|||
The following function calculates the left factorial directly by its definition: |
|||
[[File:Fōrmulæ - Left factorials 08.png]] |
|||
However, the following is much faster: |
|||
[[File:Fōrmulæ - Left factorials 01.png]] |
|||
'''Test case 1. Showing left factorials from zero to ten''' |
|||
[[File:Fōrmulæ - Left factorials 02.png]] |
|||
[[File:Fōrmulæ - Left factorials 03.png]] |
|||
'''Test case 2. Showing left factorials from 20 to 110, by tens''' |
|||
[[File:Fōrmulæ - Left factorials 04.png]] |
|||
[[File:Fōrmulæ - Left factorials 05.png|858px]] |
|||
'''Test case 3. Showing length of left factorials, from 1,000 to 10,000 by thousands''' |
|||
[[File:Fōrmulæ - Left factorials 06.png]] |
|||
[[File:Fōrmulæ - Left factorials 07.png]] |
|||
=={{header|Frink}}== |
=={{header|Frink}}== |