Skip to content
Nawaf Abdullah edited this page Feb 10, 2019 · 4 revisions

The Planet class, defined in the planet.py script, allows the user to simulate the trajectory of a planet around a solar system's sun.

Numerical Method:

Usage Example:

# Standard plot
sys = System(500000)
pl1 = Planet(4, 1, -1, 0, 2)
sys.add_planet(pl1)
sys.calc_system(10000, 0.001)
sys.plot()

Clone this wiki locally