| Thread Closed |
Coordinates of a random point of a circle? |
Share Thread | Thread Tools |
| Sep19-07, 08:24 PM | #1 |
|
|
Coordinates of a random point of a circle?
Hi.
If the radius of a circle is known and it's also known that its center is at X:0, Y:0, how can the points that form the circle be calculated? What would be the coordinates of a random point of the circle? I made a simple illustration hoping that it would make the question a little clearer. Any help would be fantastic. Thank you! |
| Sep19-07, 10:28 PM | #2 |
|
|
theres an equation for this
|
| Sep20-07, 07:34 AM | #3 |
|
|
That's great! I'd love know what would be that equation.
I found the following: In an x-y coordinate system, the circle with centre (0, 0) and radius r is the set of all points (x, y) such that: [tex]{x}^2+{y}^2={r}^2[/tex] But I'm not sure how to find the coordinates of a random point using this formula. |
| Sep20-07, 08:46 AM | #4 |
|
|
Coordinates of a random point of a circle?
That depends strongly on what you mean by "random". You could, for example, choose x "randomly" (uniform distribution) between -r and r and then calculate y by [itex]y= \pm\sqrt{r^2- x^2}[/itex], choosing the "+" and "-" randomly with probability 1/2 for each.
A different way would be to use the "angle", [itex]\theta[/itex]. Choose [itex]\theta[/itex] randomly (uniform distribution) between 0 and [itex]2\pi[/itex]. Then use the formulas x= r cos([itex]\theta[/itex]), y= r sin[itex]\theta[/itex]. Notice that since [itex]sin^2(\theta)+ cos^2(\theta)= 1[/itex] that gives the same as [itex]x^2+ y^2= r^2[/itex]. This is, by the way, for a point on the circle, not a point in the disk. In order to choose points "randomly" in the disk [itex]x^2+ y^2\le R^2[/itex], choose two numbers, r chosen randomly between 0 and R, [itex]\theta[/itex] chosen randomly between 0 and [itex]2\pi[/itex] and then use [itex]x= r cos(\theta)[/itex], [itex]y= r sin(\theta)[/itex] to find the point (x,y). |
| Sep20-07, 09:02 AM | #5 |
|
|
i took the statement to be " find an arbitrary point"
|
| Sep20-07, 03:54 PM | #6 |
|
|
Thank you very much HallsofIvy, that's really helpful!
|
| Sep20-07, 04:16 PM | #7 |
|
Mentor
|
|
| Sep20-07, 06:39 PM | #8 |
|
Recognitions:
|
The circle happens to be a compact Lie group, so it has a unique bi-invariant probability measure, Haar measure. Only the second probability measure described by Halls is invariant under the rotational symmetry of the circle! This second measure is in fact the Haar probability measure on [itex]SO(2)[/itex]. More generally, you can ask to "choose a random element" in other compact Lie groups such as [itex]SO(n)[/itex] or [itex]SU(n)[/itex], meaning "according to Haar measure", and then things get a little tricky. It's important to get this right if you are simulating a quantum system. See Francesco Meddrazzi, "How to Generate Random Matrices from the Classical Compact Groups ", Notices of the AMS 54 (2007): 592-604 http://www.ams.org/notices/200705/fea-mezzadri-web.pdf |
| Sep20-07, 09:51 PM | #9 |
|
Mentor
|
The distinction is important because a point drawn randomly from the unit disk forms the basis for many other random distributions such as the normal distribution. To generate a normal variate, one first draws a random point from a distribution spread uniformly in terms of area over the unit disk and then transforms this point to a pair of normal deviates using either the Box-Müller transform or the Marsaglia polar method. |
| Sep21-07, 10:52 AM | #10 |
|
Recognitions:
|
In case this wasn't clear, I have been talking about the two alternate methods Halls discussed for choosing "at random" a point on a circle of fixed radius. (First two paragraphs of his post above.) |
| Sep21-07, 11:41 AM | #11 |
|
Mentor
|
|
| Sep21-07, 12:03 PM | #12 |
|
Recognitions:
|
|
| Sep21-07, 04:08 PM | #13 |
|
|
You're right, I did not specify what distribution to use for r. Sneaky of me wasn't it! Actually the original post said only "random point" and did not say it had to be uniform over either the circle or the disk.
|
| Apr22-09, 09:55 PM | #14 |
|
|
What about if the center of the circle is not at the origin?but still the radius is known.how we calculate 10 evenly points (xi,yi) on the circle? anyone can help?
|
| Apr23-09, 07:02 AM | #15 |
|
|
If the center of the circle is at (a, b) and the circle has radius r, then
[tex](x-a)^2+ (y-b)^2= r^2[/tex] |
| Apr23-09, 12:14 PM | #16 |
|
|
|
| Apr23-09, 12:54 PM | #17 |
|
|
It's still not clear what you want to do. You first asked about random points on a circle. What do you mean by "random"? As has been pointed out above, you could assume that x is uniformly distributed between -r and r and the calculate y. Or you could assume that the angle, [itex]\theta[/itex] the line from the center of the circle to the point on the circl makes with the "positive x-axis" is uniformly distributed between 0 and 360 degrees and calculate x and y with [itex]x= a+ r cos(\theta)[/itex], [itex]y= b+ r sin(\theta)[/itex]. ((a,b) is the center of the circle.) Or, you might use some other, non-uniform, distribution for x or [itex]\theta[/itex], giving completely different results.
Now you ask "lets say i know one point (x1,y1) on the circle,is that possible to calculate another 9 points that lie evenly on the circle?". I assume that by "lie evenly on the circle" you mean equal distances between the points. Since there are 360 degrees in a circle 10 points, the points must be 360/10= 36 degrees apart. You can get the angle for the first point by [tex]tan(\theta)= \frac{sin(\theta)}{cos(\theta)}= \frac{y_1}{x_1}[/tex] Once you know [itex]\theta[/itex], calculate the other 9 points with [tex]x= r cos(\theta+ 36n)[/tex] [tex]y= r sin(\theta+ 36n[\tex] with n from 1 to 9. Be sure your calculator is in degree mode! |
| Thread Closed |
| Thread Tools | |
Similar Threads for: Coordinates of a random point of a circle?
|
||||
| Thread | Forum | Replies | ||
| X,Y Coordinates Circle, Different Plane | General Math | 3 | ||
| Coordinates of Point P | Precalculus Mathematics Homework | 5 | ||
| 3d Point Coordinates | Calculus & Beyond Homework | 4 | ||
| finding the shortest trail between random coordinates | Introductory Physics Homework | 0 | ||
| Sum of the reciprocal distances in a random 2D array of equal disks (within a circle) | General Physics | 2 | ||