Algorithms, Monte Carlo, Mathematics, Java, Programming.
struck, we can do as follows: 1) Uniformly select a random point on the graph (a,b) 2) If a² + b² ≤ 1: the point is on/in the circle. Otherwise, it is outside. 3) Prob[(x,y) is in the circle] ≈ number of points found to be within the circle / total number of trials. 4) Approximate using π ≈ 4 *