Program EULER for SHARP calculator Goto start :Label eqn f=… Return Label start Print "initial x Input x Print "initial y Input y Print "final x Input b Print "divisions Input n I=1 h=(b-x)/n Label 1 U=x+h Gosub eqn v=y+f*h Line x,y,u,v x=u x=v i = i+1 If i<=n Goto 1 Print "x: Print x Print "y: Print y (Goto is in BRANCH menu) (Label is in BRANCH menu) (replace … by the function f(x,y) ) (Return is in BRANCH menu) (Access via PROG menu) (ditto) (ditto) (ditto) (ditto) (ditto) (ditto) (ditto)
(Gosub is in BRANCH menu) (Line is in GRAPH menu)
-----------------------------Enter y' = f(x,y) as f(x,y) in the 3rd line. To enter the program, select NEW in the program menu. Then select REAL in the MODE menu. When prompted for a title, use "euler". If the graph looks weird, try more divisions.