abm3pc_sys {ecostate} | R Documentation |
Adams-Bashford-Moulton for system of equations
Description
Third-order Adams-Bashford-Moulton predictor-corrector method.
Usage
abm3pc_sys(f, a, b, y0, n, Pars, ...)
Arguments
f |
function in the differential equation |
a |
starting time for the interval to integrate |
b |
ending time for the interval to integrate. |
y0 |
starting values at time |
n |
number of steps |
Pars |
named list of parameters passed to f |
... |
additional inputs to function |
Details
Combined Adams-Bashford and Adams-Moulton (or: multi-step) method of third order with corrections according to the predictor-corrector approach. Copied from pracma under GPL-3, with small modifications to work with RTMB
Value
List with components x for grid points between a and b and y an n-by-m matrix with solutions for variables in columns, i.e. each row contains one time stamp.