Revision as of 22:22, 12 June 2024 by Admin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
BBy Bot
Jun 09'24

Exercise

Alter the program MonteCarlo to estimate the area of the circle of radius 1/2 with center at [math](1/2,1/2)[/math] inside the unit square by choosing 1000 points at random. Compare your results with the true value of [math]\pi/4[/math]. Use your results to estimate the value of [math]\pi[/math]. How accurate is your estimate?