AB4

Propagates the state vector forward one time step using the Adams-Bashforth 4th-order method.

Back to IVP Solver Toolbox Contents.

Contents

Syntax

F = AB4(f,t,F,h)

Description

F = AB4(f,t,y,h) updates the $\mathbf{F}$ matrix, F, for the next sample time, given the $\mathbf{F}$ matrix at the current time t, the function f(t,y) defining the ODE $d\mathbf{y}/dt=\mathbf{f}(t,\mathbf{y})$, and the step size h.

Input/Output Parameters

Variable Symbol Description Format
Input f multivariate, vector-valued function () defining the ordinary differential equation
- inputs to f are the current time (t, 1×1 double) and the current state vector (y, p×1 double)
- output of f is the state vector derivative (dydt, p×1 double) at the current time/state
1×1
function_handle
t current sample time 1×1
double
F matrix (see Section 3.5.2 of the technical documentation) for the current sample time p×5
double
h step size 1×1
double
Output F matrix (see Section 3.5.2 of the technical documentation) for the next sample time p×5
double

See also

AB2 | AB3 | AB5 | AB6 | AB7 | AB8