モンテカルロ法による円周率推定

シミュレーション回数
π 推定値: -
誤差: -
円内の点数: -

Monte Carlo π

Random sampling inside a unit square estimates π ≈ 4 × (hits / trials).

  • More iterations improve stability