Estimate Pi using Monte Carlo methods

Question

We can define the area of a circle as π (pi) * r^2 (where r is the radius of the circle). Given this, write a simulation to estimate π (pi) out to two decimal points using a Monte Carlo method. For reference, the basic equation of a circle is x^2 + y^2 = r^2.

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now