Re: Distance between a point and y = ax^2 + bx + c
- From: Badger <badger@xxxxxxxxxxxxxxx>
- Date: Wed, 01 Nov 2006 06:06:40 -0500
On Wed, 01 Nov 2006 01:13:56 EST, Magnus <maol9883@xxxxxxxxxxxxx>
wrote:
Thanks. I still need to solve that cubic. The equation is the same as the one here: http://home.student.uu.se/maol9883/files/cubic.jpg
Those "square root"-terms make it possible for certain points (x0, y0) to become imaginary ---> three imaginary roots.
Am I to conclude that I have solved it incorrectly in Maxima?
That would seem to be the case. It looks to me like you have the
correct cubic (after you set the constant term of the quadratic to 0),
but I don't know why you wanted to show that long closed form
solution.
Taking the second example from another post you made in this thread:
y = x^2 and the point (0, 1)
The three roots of the cubic are 0 and +|- sqrt(2)/2, thus the two
(symmetric) closest points on the curve are at ( +|- sqrt(2)/2, 1/2 ),
distance = sqrt(3)/2 (assuming my algebra is correct).
If you haven't already done so, this is easy to check by hand so you
can use it to validate the Maxima solution.
Since I don't know anything about Maxima, I don't know how you need
to specify the cubic and a specific set of coefficients to Maxima for
solution. Try giving Maxima a *specific* cubic to solve, rather than
asking for that big closed form solution first.
HTH
.
- References:
- Re: Distance between a point and y = ax^2 + bx + c
- From: Badger
- Re: Distance between a point and y = ax^2 + bx + c
- From: Magnus
- Re: Distance between a point and y = ax^2 + bx + c
- Prev by Date: Re: Constructive proof that sqrt(2) is irrational
- Next by Date: Complete Compact Linear Orders
- Previous by thread: Re: Distance between a point and y = ax^2 + bx + c
- Next by thread: Re: Distance between a point and y = ax^2 + bx + c
- Index(es):