Using a Numerical Method to Solve N-body Equations