Estimation of 7c. The equation of a circle is x2 + y2 = r2. Evaluate x by determining the area of a circle of radius r circumscribed by a square of side 2r. x is the ratio of the area of the circle to that of the square. Generate a pair of random numbers to use as the x and y coordinates. If the distance of the point from the origin is less than or equal to r, it is within the circle. Repeat this N times, evaluating Nc;, the number of points that fall within the circle. The ratio Nc /N should be a reasonable estimate of 7r.
#Sales Offer!| Get upto 25% Off: