![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4
![]() |
CHILL...
(x-a)^2 + (y-b)^2 = r^2 (x-a)(x-a) + (y-b)(y-b) = r^2 x^2 + (x)(-a) + (-a)(x) + a^2 + y^2 + (y)(-b) + (-b)(y) + b^2 = r^2 x^2 + y^2 + a^2 + b^2 + (x)(-a)^2 + (y)(-b)^2 = r^2 ...err do you HAVE to break it down like this? Language constraints? Why can't you use the one above with sqrt()? I have not programmed extensively with Python, so I'm not sure, but I can check in C/C++. Quote:
Last edited by EverLearning; Jul 25th, 2005 at 9:39 PM. |
|
|
|
|
|
|
#12 |
|
Programming Guru
![]() |
Oh my bad, I thought (x-a)(x-a) = x^2 + (x)(-a)^2 + a^2. Fair enough.
And I don't understand your question, I am using your equation. Just from the X values ...oh my...I think I found the problem. :o , the X range was outside the radius, I thought the equation asked for A and B so that X and Y didn't need to be defined according to the position of the circle. ![]() Okay, it should probably work then. Sorry for the bother. |
|
|
|
|
|
#13 |
|
Hobbyist Programmer
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4
![]() |
Feels good to find your own mistakes, know that feeling
![]() cheers |
|
|
|
|
|
#14 |
|
Hobbyist Programmer
|
wait...when you say "x^2", do you mean "x squared"?
|
|
|
|
|
|
#15 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4
![]() |
Quote:
Yes. It is one of the standard ways to express squarede entities without LaTex or superscript tags. |
|
|
|
|
|
|
#16 |
|
Hobbyist Programmer
|
But then i can't see how x^2 + y^2 will always equal to 1 in the cordinates of a cirlce
![]() |
|
|
|
|
|
#17 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: Indiana
Posts: 130
Rep Power: 4
![]() |
Quote:
From general formula in post#3, RHS value is r^2. Circle is defined as "graph" that consists of all points equidistant from the center, i.e. radius is that distance. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|