EGR 511

The condition for “hits” is then when x ( r/2, y must be less than (r/2)(31/2; and when r/2 < x ( r, then y must be less than (r ( x)tan (/3 = (r ( x)(31/2. We can then divide the number of hits by the total number of trials and multiply by the area of the circle, (r2. % Set 6, problem 3. trials=10000; r = 5; r2 = r/2; s3=sqrt(3); h = r2 ... ................
................