Simple Monte Carlo Simulation

\( \Large{\pi} \) \( \text{ Approximation} \)

Your browser does not support the HTML5 canvas tag.

\( \huge{\text{"Area of circle"} \over \text{"Area of square"}} = {\frac{\pi.r^2}{(2.r)^2}} = {\frac{\pi}{4}} \)


\( \Rightarrow { \huge{\text{"random points inside circle"} \over \text{"total random points"}} \approx {\frac{\pi}{4}} } \)


\( \Rightarrow { \huge{\pi} \approx 4 * \left( {\text{"random points inside circle"} \over \text{"total random points"}} \right) } \)

        
Fork me on GitHub