Monte Carlo methods: Difference between revisions
Content added Content deleted
Line 1,733: | Line 1,733: | ||
piMC 10^i.7 |
piMC 10^i.7 |
||
4 2.8 3.24 3.168 3.1432 3.14256 3.14014</syntaxhighlight> |
4 2.8 3.24 3.168 3.1432 3.14256 3.14014</syntaxhighlight> |
||
'''Alternative Tacit Solution:''' |
|||
<syntaxhighlight lang="j">pimct=. (4 * +/ % #)@:(1 >: |)@:(? j. ?)@:($&0)"0 |
|||
(,. pimct) 10 ^ 3 + i.6 |
|||
1000 3.168 |
|||
10000 3.122 |
|||
100000 3.13596 |
|||
1e6 3.1428 |
|||
1e7 3.14158 |
|||
1e8 3.14154</syntaxhighlight> |
|||
=={{header|Java}}== |
=={{header|Java}}== |