132k views
1 vote
Find an approximate value for π using the Monte Carlo simulation technique

1 Answer

4 votes

To compute Monte Carlo estimates of pi, you can use the function f(x) = sqrt(1 – x2). The graph of the function on the interval [0,1] is shown in the plot. The graph of the function forms a quarter circle of unit radius. The exact area under the curve is π / 4.

User Mikko Haavisto
by
7.5k points