Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 988 Bytes

README.md

File metadata and controls

62 lines (38 loc) · 988 Bytes

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