EGR 511

We will generate random x and y and choose the density according to the algorithm: If (x2 + y2) > 144 then ( = 0 because it is outside the circle. If ((x ( 4)2 + y2) < 16 then ( = 0 because it is in large hole. If (x2 + (y + 6) 2) < 4 then ( = 0 because it is in small hole. Otherwise ( = 1 % Set 6, problem 7 % f=0;n=5000; X=0;Y=0; M=pi*(12^2-4 ... ................
................