**sling_ode_test**,
a MATLAB code which
calls sling_ode(), which
sets up and solves a system of ordinary differential equations
(ODE) for which the exact circular solution can only be approximated
for a short interval before it decays to zero.

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

sling_ode, a MATLAB code which sets up and solves a system of ordinary differential equations (ODE) for which the exact circular solution can only be approximated for a short interval before it decays to zero.

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

- midpoint.m, solves an ODE system using the implicit midpoint method.
- sling_midpoint.m, uses midpoint() to solve the problem.
- sling_midpoint_plot_1.png, a plot of two solution components over time, for s = 1.
- sling_midpoint_phase_1.png, a phase plot, for s = 1.
- sling_midpoint_conservation_1.png, a plot of the energy over time, for s = 1.
- sling_midpoint_plot_0.4.png, a plot of two solution components over time, for s = 0.4.
- sling_midpoint_phase_0.4.png, a phase plot, for s = 0.4.
- sling_midpoint_conservation_0.4.png, a plot of the energy over time, for s = 0.4.

- sling_ode45.m, uses ode45() to solve the problem.
- sling_ode45_plot_1.png, a plot of two solution components over time, for s = 1.
- sling_ode45_phase_1.png, a phase plot, for s = 1.
- sling_ode45_conservation_1.png, a plot of the energy over time, for s = 1.
- sling_ode45_plot_0.4.png, a plot of two solution components over time, for s = 0.4.
- sling_ode45_phase_0.4.png, a phase plot, for s = 0.4.
- sling_ode45_conservation_0.4.png, a plot of the energy over time, for s = 0.4.