Post Reply 
1st program with problems "Euler Method"
12-26-2019, 07:04 PM
Post: #2
RE: 1st program with problems "Euler Method"
For the first three lines of your program, I think this is what you want:

Code:
EXPORT eulerm(funct,X0,Y0,ch,times)
BEGIN
 LOCAL a, s,check,x,y;
 CAS(EVAL("myfunct(x,y):="+funct));
 RETURN(myfunct('x','y'));
END;

With those changes,

eulerm("(3-y)*(y+1)",0,4,1,5) will return (y+1)*(-y+3)

Nothing after the return statement will be executed.

-road
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 1st program with problems "Euler Method" - roadrunner - 12-26-2019 07:04 PM



User(s) browsing this thread: 1 Guest(s)