DEtools
convertsys
convert a system of differential equations to a first-order system
Calling Sequence
Parameters
Description
Examples
convertsys(deqns, inits, vars, ivar, yvec, ypvec)
deqns
-
ordinary differential equation, or set or list of equations; can be specified as expressions, which are assumed equal to zero
inits
set or list of initial conditions
vars
function or list or set of functions; dependent variables of the system
ivar
independent variable
yvec
(optional) name to be used for the solution vector in the first-order system
ypvec
(optional) name to be used for the yvec' vector in the first-order system
DEtools[convertsys] converts a system of one or more ordinary differential equations to a system of first-order differential equations. Corresponding initial conditions (if specified) are also converted.
The initial conditions inits must each be of the form function = expression. See examples below. Note: if no initial conditions are available, inits must still be specified as {} or [].
The convertsys command returns a list where
* is the list of equations representing the first-order system in which the vector is specified by and the vector by .
* is the list of equations defining the names in terms of the original functions.
* is the point at which the initial conditions are specified. It is returned as undefined if inits is the empty set.
* is a list representing the vector of initial conditions (possibly empty). Only one of the initial conditions needs to be specified for this list to be nonempty. Note that the ordering of matches that of , not that of inits.
This function is part of the DEtools package, and so it can be used in the form convertsys(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[convertsys](..).
See Also
Download Help Document