Introduction
This program plots the slope field for the differential equation in the
form
.
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
| 'SLOPEFIELD' | {' is in ALPHA} {This is the name of the program} |
| Cls | {Cls is in SHIFT} |
| 7 |
{Xmin, Xmax are in VAR under RNG}
{ |
| 7 |
{Ymin, Ymax are in VAR under RNG} |
| 1 |
{ |
| 1 |
|
| Xmin + 0.5 |
|
| Ymin + 0.5 |
|
| 12 |
|
| Lbl 1 | {Lbl is in PRGM under JMP} |
| 8 |
|
| Z |
|
| Lbl 2 | |
| Y1 |
{Y1 is in VAR under GPH, then followed by a 1} |
| 1 |
{ |
| T |
|
| Plot X-G, Y-S | {Plot is in SHIFT} |
| Plot X+G, Y+S | |
| Line | {Line is in SHIFT} |
| Y+K |
|
| Dsz J | {Dsz is in PRGM under JMP} |
| Goto 2 | {Goto is in PRGM under JMP} |
| X+H |
|
| Dsz L | |
| Goto 1 |
Running the Program
You will need to enter a function f(x,y) into
Y1 and adjust the RANGE accordingly
before running the program. To view the field after it is plotted use the
G
T button.