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
| :ClrDraw | {ClrDraw is in DRAW under Draw} |
| :FnOff | {FnOff is in Y-VARS under ON/OFF} |
| :7*(XMax-XMin)/83 |
{XMax, XMin are in VARS under WINDOW} {The arrow is STO} |
| :7*(YMax-YMin)/55 |
{YMax, YMin are in VARS under WINDOW} |
| :1/(0.4*H)^2 |
|
| :1/(0.4*K)^2 |
|
| :XMin+0.5*H |
{X is X,T button} |
| :YMin+0.5*K |
|
| :1 |
{The 1 is a one} |
| :Lbl 1 | {Lbl is in PRGM under CTL} |
| :1 |
|
| :Z |
|
| :Lbl 2 | |
| :Y1 |
{Y1 is in Y-VARS under FUNCTION} |
| :1/ |
{ |
| :T*C |
|
| :Line(X-C,Y-S,X+C,Y+S) | {Line is in DRAW under Draw} |
| :Z+J*K |
|
| :IS>(J,8) | {IS> if in PRGM under CTL} |
| :Goto 2 | {Goto is in PRGM under CTL} |
| :X+H |
|
| :IS>(L,12) | |
| :Goto 1 |
Running the Program
You will need to enter a function f(x,y) into
Y1 and adjust the WINDOW accordingly
before running the program. You can use the X,T
button for X and the ALPHA button for Y.