Re: Help: Plotting points through a 39gii Program Message #3 Posted by Eddie W. Shore on 4 Nov 2012, 1:44 p.m., in response to message #2 by Bunuel66
I am not sure. When I tried debugging the program the calcualtor goes into "space" when it approaches the loop.
Apparently, der(F1(X),X=t) isn't allowed in a program. I think this is what you meant by the derivative being null. Really dumb not to allow calculus functions.
This is what I have now:
NEWTPATH(g,n)
BEGIN
LOCAL k,w,y,h,d,X;
RECT();
FOR k FROM 1 TO n DO
F1(g)->h;
der(F1(X),X=g)->d;
t-h/d->w;
F1(w)->y;
PRINT(w);
w->t;
END;
END;
Now I get a syntax error on Line 8 every time. Even if I change the der(F1(X),X=g)->d to 1->d, I still get this error. I have no idea where I have the syntax error, I localized all the varaibles, including X.
Edited: 4 Nov 2012, 1:56 p.m.
|