back to Computational Physics home page | Further python notes and examples

Introduction to Computing: PLANET, using Python

Simulate Newton's laws for bodies that attract each other with an inverse-square force law.
This solution is implemented using python's visual package.

orbit.py implements the Leapfrog method for a pair of objects in their centre-of-mass frame.

Orbit

[an error occurred while processing this directive]

orbit3.py implements the Leapfrog method for three mutually-gravitating objects.

Orbit3
(click to zoom image)

[an error occurred while processing this directive]