**spring_ode**,
a Python code which
sets up and solves a system of ordinary differential equations (ODE) for
the motion of a spring with mass m, damping b, and stiffness k.

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

**spring_ode** is available in
a MATLAB version and
an Octave version and
and
a Python version.

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

- spring_ode.py, the source code.
- spring_ode.sh, runs all the tests.
- spring_ode.txt, the output file.

- spring_solve_ivp_y1.png, a plot of the displacement over time.
- spring_solve_ivp_y2.png, a plot of the velocity over time.
- spring_solve_ivp_phase.png, the phase plot.
- spring_solve_ivp_conservation.png, a plot of the spring energy over time.