Monte Carlo methods: Difference between revisions
→{{header|EasyLang}}
(Added solution for EDSAC) |
|||
Line 1,022:
=={{header|EasyLang}}==
<syntaxhighlight lang="text">
proc mc n . .
for
.
.
print 4.0 * hit / n
.
numfmt 4 0
call mc 10000
call mc 100000
call mc 1000000
call mc 10000000
</syntaxhighlight>
Output:
3.1292
|