Skip to content

yegorsch/PiSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Monte Carlo Simulation for π

Theory

If area of the inscribed circle is πr2, then the area of square is 4r2. The probability of a random point landing inside the circle is thus π/4. This probability is numerically found by choosing random points inside the square and seeing how many land inside the circle (red ones). Multiplying this probability by 4 gives us π.

Alt Text

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published