SAMPLE PROGRAM FOR EULER'S METHOD (TI-85):
Euler's Method for approximate solutions to the differential equation dy/dx
= f (x, y)
To use, enter y1 = f(x, y) by using the GRAPH menu. (Use lower
case x and y.) To start the program, press "PRGM", then
"NAMES", then "EULER". At the prompts, enter the initial x
value, then the initial y value (using the initial condition), then the step
size. To exit the program, press ON, then Quit. Pressing "ENTER" again will
restart the program to allow you to re-enter new values.
:Prgm:EULER
:Disp "INITIAL x"
:Input x
:Disp "INITIAL y"
:Input y
:Disp "STEP SIZE"
:Input H
:Lbl aa
:y + y1*H ® y
:x + H ® x
:Disp " " (in order to insert a blank line)
:Disp x
:Disp y
:Pause
:Goto aa
:
Note: This program calculates Euler's Method one step at a time. If you have a
calculation that, because of a small step size, will require many, many steps, you may
want to amend this program with an appropriate "if, then" statement and related
program steps in order to do this automatically.