Example 6. Use Monte Carlo simulation to approximate the area of the cardioid defined by the constraint
Set up the constraint for the cardioid.
Set up the rectangular box enclosing the area.
Explore what happens with points.
We are done.
Aside. The analytic value of the area can be found using polar coordinates.
(c) John H. Mathews 2005