Motzkin numbers: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|Raku}}: Add alternate) |
|||
Line 298: | Line 298: | ||
</pre> |
</pre> |
||
Alternative. Note that under 32-bit and p2js M[37] happens by chance to be correct, even though |
Alternative. Note that under 32-bit and p2js M[37] happens by chance to be correct, even though |
||
an intermediate value exceeds precision |
an intermediate value exceeds precision (in this case being rounded to the nearest whole multiple |
||
simply because there isn't enough |
of 16), and the final divide by (i+1) results in a whole integer simply because there isn't enough |
||
precision to hold any decimal places. |
|||
Output as above on 64-bit, less four entries under 32-bit and pwa/p2js. |
Output as above on 64-bit, less four entries under 32-bit and pwa/p2js. |
||
<!--<lang Phix>(phixonline)--> |
<!--<lang Phix>(phixonline)--> |