Plotting Three-dimensional Differential Equations
The worksheet describes the DEplot3d routine, located in the DEtools package. Given a system of differential equations and a list of initial conditions, DEplot3d will produce a three-dimensional representation of the solution curves of the system.
In order to access the routines in the DEtools package by their short names, the with command has been used.
>
|
|
>
|
|
|
Options
|
|
The DEplot3d supports a wide variety of options. These options are summarized in the following sections.
|
iterations and stepsize
|
|
The option iterations allows the user to ask that steps of size stepsize be taken between output points. This gives greater accuracy in the output points, while reducing the actual number of output points that have to be stored.
>
|
|
>
|
|
|
|
linecolor
|
|
The linecolor option works in a way similar to that of color, but it is applied to the solution curves.
|
plot[color] Name
|
|
>
|
|
>
|
|
|
|
HUE Value
|
|
>
|
|
>
|
|
|
|
RGB Value
|
|
>
|
|
>
|
|
|
|
Expression Applied as HUE
|
|
>
|
|
>
|
|
|
|
Procedure Applied as HUE
|
|
>
|
|
>
|
|
>
|
|
|
|
|
method
|
|
The method= option allows the user to make full use of the numerical integration schemes from dsolve[numeric]. The default used is classical[rk4]. Consider the following three-dimensional equation plot that uses the classical method.
>
|
|
>
|
|
Now we use the dverk78 method for another plot.
>
|
|
>
|
|
|
|
obsrange
|
|
The obsrange= option indicates whether the internal integration should stop after one of the user-specified ranges is exceeded. The default is to continue integration along a solution curve, even after the user boundaries have been exceeded. To illustrate this, we graph two DE plots.
>
|
|
>
|
|
|
|
plot and dsolve[numeric]
|
|
A variety of plot and dsolve[numeric] options are allowed in DEplot3d. Here is an example containing a number of these:
>
|
|
>
|
|
|
|
For more information, consult the DEplot3d help page. Also see the worksheet Plotting Two-dimensional Differential Equations. You can also refer to the following help pages: diff operator, D operator, classical method, and dverk78 method.
Return to Index for Example Worksheets
|
Download Help Document
Was this information helpful?