Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

mathecarlo

Bruteforcing to derive π

image

How?

  • Creating a canvas - with a square, and a circle that fully fills the square
  • Plotting a point with randomly generated co-ordinates.
  • Measuring (through the pythagoras theorem) if the point falls within the circle or not.
  • Getting the ratio of points in the circle, to those generated in total
  • Multiplying the ratio by 4 - to get π

About

Bruteforcing to derive π

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.