pendulum_elastic_ode, a Python code which sets up and solves the ordinary differential equations (ODE) that represent the behavior of a nonlinear elastic pendulum, with gravitational force G, spring constant K, unstretched length L, and mass M.


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


pendulum_elastic_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).


Source Code:

Last revised on 24 April 2021.