Skip to contents

Runge-Kutta (2, 3)-method with variable step size, resp

Usage

ode23(f, a, b, y0, n, Pars, rtol = 0.001, atol = 1e-06)

Arguments

f

function in the differential equation \(y' = f(x, y)\); defined as a function \(R \times R^m \rightarrow R^m\), where \(m\) is the number of equations.

a

starting time for the interval to integrate

b

ending time for the interval to integrate.

y0

starting values at time a

n

Not used

Pars

named list of parameters passed to f

rtol

relative tolerance.

atol

absolute tolerance.

Details

Copied from pracma under GPL-3, with small modifications to work with RTMB. This can be used to simulate dynamics, but not during estimation