Skip to main content

Module system

Module system 

Source
Expand description

System-of-ODEs solvers.

Extends all four methods to systems of ODEs of the form:

dy⃗/dx = f(x, &y⃗),   y⃗(x₀) = y⃗₀

Each module function returns (Vec<f64>, Vec<Vec<f64>>) — the x grid and the state vector at each grid point.

Functions§

adams_bashforth
Adams-Bashforth 2-step for systems.
euler
Euler method for systems.
rk4
RK4 method for systems.