Command-line ODE Solvers

rkfixed(init, x1, x2, npoints, D) Fourth-order Runge-Kutta fixed-step method is used.
Rkadapt(init, x1, x2, npoints, D)
Fourth-order Runge-Kutta with adaptive step-size.
Bulstoer(init, x1, x2, npoints, D)
Bulirsch-Stoer method is used, which is slightly more accurate than Runge-Kutta, but requires a smoothly varying system.

Each of these functions returns a matrix in which the first column contains the npoints between x1 and x2 at which the solution to the ODE is evaluated. Subsequent columns contain the corresponding values of the solution(s) to the nth-order ODE(s) and the n − 1 derivatives of the solution(s). Either a single ODE or a system of ODE equations are allowed.

Arguments:

Notes:

QuickSheet - First-Order ODE Initial Value Problem
QuickSheet - First-Order System of ODEs

Related Topics