Motzkin numbers: Difference between revisions
Content deleted Content added
Added missing </lang> |
m →{{header|Phix}}: made it a separate native section |
||
Line 450:
41 192,137,918,101,841,817
</pre>
===native===
Normally I'd start with this simpler and perfectly valid 64-bit code, but at the moment am somewhat biased towards things that run online, without limiting things as this does.<br>
Note that, under 32-bit and p2js, M[37] happens only by chance to be correct: an intermediate value exceeds precision (in this case being rounded to the nearest multiple of 16), and the final divide by (i+1) results in
Output as above on 64-bit, less four entries under 32-bit and pwa/p2js (since unlike M[37], M[38..41] don't quite get away with the precision loss).▼
▲Output as above on 64-bit, less four entries under 32-bit and pwa/p2js.
<!--<lang Phix>(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
|