HP Forums
1st program with problems "Euler Method" - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Test forum (/forum-18.html)
+--- Thread: 1st program with problems "Euler Method" (/thread-14233.html)



1st program with problems "Euler Method" - oneletterz - 12-26-2019 12:41 AM

whats wrong with this?
Code:

EXPORT eulerm(funct,X0,Y0,ch,times)
BEGIN
LOCAL a, s,check,x,y,myfunct;
myfunct:=EXPR(funct);
RETURN(myfunct(x,y));
MAKEMAT(0,times,2)▶s;
check=0;
FOR a FROM 0 TO times DO
IF check==0 THEN
s(a,0):=X0;
s(a,1):=Y0;
check:=1;
ELSE
s(a,0):=s(a-1,0)+ch;
x:=s(a,0);
y:=s(a-1,1);
s(a,1):=y+(myfunct)*ch; 
END;

END;

END;



RE: 1st program with problems "Euler Method" - Don Shepherd - 12-26-2019 03:19 PM

(12-26-2019 12:41 AM)oneletterz Wrote:  whats wrong with this?

Well, for starters it's posted in the wrong forum. Ask the moderator to move it to the general forum and you'll get lots of feedback.


RE: 1st program with problems "Euler Method" - SammysHP - 12-26-2019 03:21 PM

It was already posted in the Prime forum: https://www.hpmuseum.org/forum/thread-14232.html
This thread should be deleted.