oscillator_ode, a Python code which defines a highly oscillatory ordinary differential equation (ODE).


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


oscillator_ode is available in a MATLAB version and an Octave version and a Python version.

Related Data and codes:

python_ode, Python codes which sets up various systems of ordinary differential equations (ODE).


  1. Uri Ascher, Sebastian Reich,
    The midpoint scheme and variants for hamiltonian systems: advantages and disadvantages,
    SIAM Journal on Scientific Computing,
    Volume 21, Number 3, pages 1045-1065, 1999.

Source Code:

Last revised on 10 November 2020.