**spring_ode_test**,
an Octave code which
calls spring_ode(), which
sets up 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, an Octave code which sets up a system of ordinary differential equations (ODE) for the motion of a spring with mass m, damping b, and stiffness k.

- spring_ode_test.m, calls all the tests.
- spring_ode_test.sh, runs all the tests.
- spring_ode_test.txt, the output file.

- spring_ode23.m, uses ode23() to solve the problem.
- spring_ode23_y1.png, a plot of the displacement over time.
- spring_ode23_y2.png, a plot of the velocity over time.
- spring_ode23_phase.png, the phase plot.
- spring_ode23_conservation.png, a plot of the spring energy over time.