Help: Plotting points through a 39gii Program  Printable Version + HP Forums (https://archived.hpcalc.org/museumforum) + Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum1.html) + Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum2.html) + Thread: Help: Plotting points through a 39gii Program (/thread233599.html) 
Help: Plotting points through a 39gii Program  Eddie W. Shore  11042012 I am attempting a plot where: x axis: x_1 and y axis: f(x_1) where x_k is determined by: x_1 = x_0  f(x_0)/f'(x_0) (Newton's Method) So far my program is: NEWTPATH(t,n) BEGIN LOCAL k,w,y; RECT(); FOR k FROM 1 TO n DO t(F1(t)/der(F1(X),X=t)) > w; F1(w) > y; PIXON(w,y); w > t; END; FREEZE; END; The "der" is the derivative funtion. The program either freezes at the input screen or gives me an "out of bounds" error. I have F1(X) already stored before running the program. Any ideas? Thanks! Eddie
Edited: 4 Nov 2012, 11:43 a.m.
Re: Help: Plotting points through a 39gii Program  Bunuel66  11042012 Have you checked that the derivative is never going null? Just my 2 cents...
Re: Help: Plotting points through a 39gii Program  Eddie W. Shore  11042012 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; th/d>w; F1(w)>y; PRINT(w); w>t; END; END;
Edited: 4 Nov 2012, 1:56 p.m.
