21 Jun 2017

Kepler Problem

It can be described as Hamiltonian system: H = U + T with U = 1/sqrt(x12 + x22) and T = (p12 + p22). Implement the forward Euler method and the leap frog method to integrate the differential equations of the Kepler problem.

Using Euler’s Method:

Using Leapfrog method:

Leave a Comment