Next: Creating a template file
Up: A generalised Runge-Kutta subroutine
Previous: Hamiltonian systems
For the classical n-body problem in dynamics [2], the Hamiltonian is of potential or separable form:
with where denotes the scalar product of .For example, in 2 degrees of freedom, where subscripts denote vector components.