| Author |
Comment/Response |
John
|
09/20/07 01:40am
Hi all,
Now I am trying to get the plot having values within an unit circle. The below was what I did.
x := RandomReal[{-1, 1}]
y := RandomReal[{-1, 1}]
t1 = Graphics[Circle[]];
t2 = ListPlot[Table[If[x^2 + y^2 < 1, {x, y}], {2000}]];
Show[t1, t2]
I think this is right, but there are points outside the circle. Does someone know what is wrong?
URL: , |
|