Unfortunately your notebook is not available for the public.abdullah wrote:If you want to take a look, this is the (math) work behind the "still-not-properly-working" Point on Ellipse:
http://www.sagenb.org/home/pub/5049
The error function is: err=sqrt((yF2−yp)^2+(xF2−xp)^2)+sqrt((yF1−yp)^2+(xF1−xp)^2)−2*aabdullah wrote:I see what you have done, but I think it can not be done like this (or I do not see how).
I made a contour plot of err(xp,yp). I just choosed some simple parameters like xF1 = -1; xF2 = 1, yF1=yF2=0, a = 2. This function is zero at all points on the ellipse, negative inside of the ellipse and positive outside of the ellipse. So this function should be well suited for the point on ellipse constraint.
Attached is also the revised wxMaxima notebook with the contour_plot command. (Saves plot as png-image)
Ulrich