Anonymous user
Left factorials: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 1,869:
{{incorrect|Lambdatalk| <br><br> The first range of left factorials should start with 0 (zero), not 2. <br><br>
<center>Hi Rosetta, '''I fixed the code'''. Thanks for the warning, it gave me a chance to improve it. At least that's what I think.</center>
}}
The code can be tested in this wiki page: http://lambdaway.free.fr/lambdawalks/?view=left_factorial
<lang scheme>
{def !n // the main function's name
Line 1,898:
1 {S.map !n.get {S.serie 1 {- :n 1}}}}}}} // the sequence of computed values
A) computing !n from 2 to 10 takes about 4ms
|