Pi is simply the ratio of the areas of the circle and the square multiplied by 4. In our case, this ratio can be approximated, for large number of simulated points, as the ratio between the number of points inside the circle and the total number of points inside the square.
Author: Aous Abdo
Suggestions, questions, or reviews for this app? Comments are open!
If any of the info above is incorrect or needs to be updated, please send an email to corrections (at) showmeshiny.com and reference this post's URL.