Jump to content

Monte Carlo methods: Difference between revisions

m
→‎{{header|REXX}}: updated the running output for the program.
(→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations, increase true value of pi (digits), elided the ASCII pi glyph, simplified the SAY statement.)
m (→‎{{header|REXX}}: updated the running output for the program.)
Line 1,541:
true pi=3.141592653589793238462643383279502884197169399375105820974944592307816406+
10,000 repetitions: Monte Carlo pi is accurate to 3 places.
550 20,000 repetitions: Monte Carlo pi is accurate to 4 places.
610630,000 repetitions: Monte Carlo pi is accurate to 5 places.
640700,000 repetitions: Monte Carlo pi is accurate to 67 places.
120,050950,000 repetitions: Monte Carlo pi is accurate to 8 places.
1126,920130,000 repetitions: Monte Carlo pi is accurate to 910 places.
Error 4 running "c:\montecpi.rex", line 15: Program interrupted
</pre>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.