Skip to content

CodePleaseRun/pi-estimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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