Introduction
This program gives coordinates for an approximate solution for the differential
equation
using Euler's method.
If you have not used one of the programs posted on this website before,
you should read through
the information in the Intro to Programming
section first.
The Program
<<RCLF 'flags' STO | |
-19 SF -2 SF | |
"INITIAL X" ":X:" INPUT | |
OBJ![]() |
|
"INITIAL Y" ":Y:" INPUT | |
OBJ![]() |
|
"STEP SIZE" ":H:" INPUT | |
OBJ![]() |
|
"# ITERATIONS" :N:" | |
INPUT OBJ![]() |
|
SUB3 {U V X Y K H N} | |
PURGE flags STOF 'flags' | |
PURGE >> | |
ENTER 'EULN' STO | {This stores the program under variable name EULN.} |
<<1 N FOR C FUNC | |
![]() |
|
X H + 'U' STO | |
H K * Y + 'V' STO | |
U V![]() ![]() |
|
LINE U 'X' STO | |
V 'Y' STO NEXT>> | |
ENTER 'SUB3' STO | {This stores the program under the variable name SUB3} |
Running the Program
You will need to enter a function f(x,y)
into
a variable called FUNC before running the program. Follow the instructions
in