Skip to content

andreafioraldi/Grassi-PI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grassi-PI

Calculate PI using random numbers and probability.

It simulates throwing stones in a square. The probability that a stone falls into the inscribed circle in the square is PI/4. So we can calculate an approximation of PI as #stones fallen in the circle / #total stones * 4.

About

Calculate PI using random numbers and probability

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published