Monte Carlo methods: Difference between revisions
Content added Content deleted
m (→{{header|RPL}}: highlighted syntax) |
|||
Line 2,832: | Line 2,832: | ||
=={{header|RPL}}== |
=={{header|RPL}}== |
||
≪ 0 |
≪ 0 |
||
1 3 PICK '''START''' |
|||
RAND SQ RAND SQ + |
|||
'''IF''' 1 < '''THEN''' 1 + '''END''' |
|||
'''NEXT''' |
|||
SWAP / 4 * |
|||
≫ '<span style="color:blue">MCARL</span>' STO |
|||
100 |
100 <span style="color:blue">MCARL</span> |
||
10000 |
10000 <span style="color:blue">MCARL</span> |
||
10000 |
10000 <span style="color:blue">MCARL</span> |
||
500000 |
500000 <span style="color:blue">MCARL</span> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |