|
Calling Sequence
|
|
dsolve(odesys, numeric, method=dverk78, vars, options)
dsolve(numeric, method=dverk78, procopts, options)
|
|
Parameters
|
|
odesys
|
-
|
set or list; ordinary differential equation(s) and initial conditions
|
numeric
|
-
|
literal name; instruct dsolve to find a numerical solution
|
method=dverk78
|
-
|
literal equation; numerical method to use
|
vars
|
-
|
(optional) dependent variable or a set or list of dependent variables for odesys
|
options
|
-
|
(optional) equations of the form keyword = value
|
procopts
|
-
|
options used to specify the ODE system using a procedure (procedure, initial, start, number, and procvars). For more information, see dsolve[numeric,IVP].
|
|
|
|
|
Description
|
|
•
|
The dsolve command with options numeric and method=dverk78 finds a numerical solution using a seventh-eighth order continuous Runge-Kutta method.
|
•
|
The following options are available for the basic use form of the dverk78 method:
|
'output' =
|
keyword or array
|
'known' =
|
name or list of names
|
'number' =
|
integer
|
'procedure' =
|
procedure
|
'start' =
|
numeric
|
'initial' =
|
array
|
'procvars' =
|
list
|
'startinit' =
|
boolean
|
'implicit' =
|
boolean
|
'optimize' =
|
boolean
|
'abserr' =
|
numeric
|
'relerr' =
|
numeric
|
'errorest' =
|
symbol
|
'initstep' =
|
numeric
|
'minstep' =
|
numeric
|
'maxstep' =
|
numeric
|
'maxfun' =
|
integer
|
|
|
|
Specifies the desired output from dsolve, and the known option specifies user-defined known functions. For more information, see dsolve[numeric].
|
|
'number', 'procedure', 'start', 'initial', and 'procvars'
|
|
These options are used to specify the IVP using procedures. For more information, see dsolve[numeric,IVP].
|
|
'startinit','implicit', and 'optimize'
|
|
'abserr', 'relerr', 'initstep', 'minstep', and 'maxstep'
|
|
Specify the desired accuracy of the solution, and allow for more detailed control of the step size. For more information, see dsolve[Error_Control]. The default values are , , , , and .
|
|
The dverk78 method is capable of working in arbitrary precision based on the setting of Digits, and can be used to obtain high accuracy solutions for ODE systems. As a note of caution, however, it is often necessary to work with a greater number of Digits than would be expected for the requested error tolerance, to prevent round-off error from giving an inaccurate error estimate. When the error tolerance is too strict for the current setting of Digits, it is detected by the algorithm, and an error is issued. Asymptotically dverk78 requires Digits set so that .
|
|
Note: As for all other numeric dsolve methods, any setting of Digits that is less than or equal to hardware precision works in hardware precision, so for , the algorithm works in Digits (see evalhf).
|
|
Allows control over the method used to obtain error estimates, and can have the values or pair. The option is the default, and tells dverk78 to estimate the error using the interpolant of the method. The pair option tells dverk to estimate the error using the difference between the computed solution and a lower order estimate of the solution (hence 'pair'). Typically, the option gives a better error estimate than the pair option, but requires more work to compute. This may also be a better option for expensive systems, as dverk78 with the option performs 20 function evaluations per step, while the pair option only requires 13.
|
|
An integer that specifies the maximum on the number of evaluations of the ODE or ODE system in one call to the returned procedure. This limits the amount of work done on any individual call (See dsolve[maxfun]). This option is relevant for the procedure-style output only. By default, this value is set to zero (disabled).
|
•
|
Results can be plotted using the function odeplot in the plots package.
|
|
|
Examples
|
|
Default output at several points
>
|
|
| (1) |
| (3) |
| (4) |
| (5) |
array output
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
listprocedure output
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
>
|
|
>
|
|
>
|
|
| (13) |
>
|
|
| (14) |
Comparison of use of 'interpolant' and 'pair'
>
|
|
| (15) |
| (16) |
>
|
|
| (18) |
| (19) |
|
|
References
|
|
|
Enright, W.H. "The Relative Efficiency of Alternative Defect Control Schemes for High Order Continuous Runge-Kutta Formulas." Technical Report 252/91, Dept. of Computer Science, University of Toronto, June, 1991.
|
|
Verner, J.H. "Explicit Runge-Kutta Methods with Estimates of the Local Truncation Error." SIAM Journal of Numerical Analysis, Aug. 1978.
|
|
|
Credits
|
|
|
Much appreciation and thanks go to Dr. Jim Verner who provided us with the coefficients for the dverk78 method, and the related interpolant. Without these coefficients the method would be restricted to hardware precision.
|
|
|
|