Integration Methods¶
- The following integration methods are included in ode:
Euler’s method
Backward Euler method
Verlet method
The integration methods operate on systems of either first or second order differential equations. By convention \(X\) is the vector containing the state variables of the system, \(f(t,X)\) is a function returning either the first or second derivative of the system, and \(h\) is the timestep.
The current state and derivative of the system are represented as lists.
Euler’s method¶
Euler’s method is an explicit method for solving a system of first order differential equations.
Backward Euler method¶
Euler’s method is an implicit method for solving a system of first order differential equations.
Verlet method¶
The Verlet method, also called Störmer–Verlet method, is an explicit method for solving a system of second order differential equations. An initial velocity vector \(V_0\) is needed as well as the initial condition \(X_0\).
The first step is calculated with:
Subsequent steps are calculated with:
If subsequent velocities are needed, they can be calculated with: