Monte Carlo methods: Difference between revisions

Content deleted Content added
m →‎{{header|REXX}}: changed to preferred spelling.
m →‎{{header|REXX}}: undid previous change.
Line 1,529:
end /*chunk*/
reps=chunk*j /*calculate the number of repetitions. */
_=compare(4*! / reps, pi) /*compare apples and ··· crab applescrabapples. */
if _<=accur then iterate /*if not better accuracy, keep trukin'.*/
say right(commas(reps),20) @reps 'accurate to' _-1 "places." /*-1 for dec. pt.*/