Integrates ordinary differential equations using a Runge-Kutta method
rkintegrate(fun, x0, tstart = 0, tend = 1, dt = NULL)
the dynamical function with arguments state
(a vector) and t
.
the initial condition, a vector with one element for each state variable
starting time
ending time for integration
step size for integration
a list containing x
, a matrix of the state with one row for each
time step and a vector t
containing the times of those steps.
This is mainly for internal use by integrateODE.