/pi-estimation

Estimating π using Monte Calro Simulation

Primary LanguagePythonMIT LicenseMIT

Estimating π using Monte Calro Simulation


Using pseudorandom points


pseudorandom.mp4

Using quasirandom points (Sobol sequence)


quasirandom.mp4

Convergence of pseudorandom points & quasirandom points


comparison.mp4

Installation

git clone https://github.com/CodePleaseRun/pi-estimation.git
cd pi-estimation

Dependencies:

  • matplotlib
  • numpy
  • scipy

Usage

  • Using pseudorandom points

    python pseudorandom.py
  • Using quasirandom points

    python quasirandom.py
  • Comparing the two

    python compare.py

Licence

MIT