**two_body_ode_test**,
a MATLAB code which
calls two_body_ode(), which
defines ordinary differential equations (ODE) which
simulate the behavior of two bodies, constrained to lie in a plane,
moving under the influence of gravity, with one body much more massive
than the other.

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

two_body_ode, a MATLAB code which defines ordinary differential equations (ODE) which simulate the behavior of two bodies, constrained to lie in a plane, moving under the influence of gravity, with one body much more massive than the other.

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

**initial_orbit** simulates the problem over approximately two orbits.

- initial_orbit.m, the source code.
- initial_orbit.png, an image of the trajectory.

**orbital_decay** computes about twenty successive orbits, showing
how the orbit gradually decays to a more elliptical form.

- orbital_decay.m, the source code.
- orbital_decay.png, an image of the trajectory.