Plotting The Solution To Simple Differential Equations - HP 50g User Manual

Graphing calculator
Hide thumbs Also See for 50g:
Table of Contents

Advertisement

Plotting the solution to simple differential equations

The plot of a simple differential equation can be obtained by selecting Diff
Eq in the TYPE field of the PLOT SETUP environment as follows: suppose that we
want to plot x(t) from the differential equation dx/dt = exp(-t
conditions: x = 0 at t = 0. The calculator allows for the plotting of the solution
of differential equations of the form Y'(T) = F(T,Y). For our case, we let Y x
and T t, therefore, F(T,Y) f(t,x) = exp(-t
Before plotting the solution, x(t), for t = 0 to 5, delete the variables EQ and
PPAR.
Press „ô, simultaneously if in RPN mode, to access to the PLOT SETUP
window.
Change
TYPE
Press ˜ and type ³„ ¸-~ „tQ2@@@OK@@@.
The cursor is now in the
. This is the code used by the calculator to identify the variables to be
Var:1
plotted.
H-Var:0
be plotted in the horizontal axis.
variable (default name 'Y') will be plotted in the vertical axis.
Press ˜ . The cursor is now in the
„t@@@OK@@@ to change the independent variable to t.
Press L@@@OK@@@ to return to normal calculator display.
Press „ò, simultaneously if in RPN mode, to access the PLOT window
(in this case it will be called PLOT WINDOW – DIFF EQ).
Change the H-VIEW and V-VIEW parameters to read:
-11.5
Change the
5@@@OK@@@.
The values Step and Tol represent the step in the independent variable and
the tolerance for convergence to be used by the numerical solution. Let's
leave those values with their default settings (if the word default is not
shown in the Step: field, use L @RESET to reset that value to its default
value. Press L to return to the main menu.) Press ˜ .
The Init-Soln value represents the initial value of the solution to start the
numerical result. For the present case, we have for initial conditions x(0) =
0, thus, we need to change this value to 0.0, by using 0@@@OK@@@.
Press @ERASE @DRAW to plot the solution to the differential equation.
Press @EDIT L @LABEL @MENU to see the graph with labels.
to
.
Diff Eq
H-Var
means the independent variable (to be selected later) will
value to 0, and the Final value to 5 by using: 0@@@OK@@@
Init
2
).
field. It should show
Also,
V-Var:1
field. Press ³~
Indep
2
), with initial
and also
H-Var:0
means the dependent
H-VIEW: -15,V-VIEW:
Page 12-26
V-

Advertisement

Table of Contents
loading

Table of Contents