Lesson 9 of 15
Orbital Mechanics
Orbital Mechanics
Kepler and Newton gave us the laws that govern how objects orbit one another — from moons around planets to stars around black holes.
Kepler's Third Law
The orbital period of a body on a circular (or elliptical) orbit with semi-major axis around a central mass is:
Solving for :
For Earth orbiting the Sun ( m), this gives s — one year.
Circular Orbital Velocity
For a circular orbit, gravity provides exactly the centripetal force needed:
Earth's orbital velocity is approximately 29.8 km/s.
Orbital Energy
The total mechanical energy of a bound orbit (kinetic + potential) is:
Negative energy means the orbit is bound. The more negative (smaller ), the more tightly bound the orbit.
Your Task
Implement three functions. Use m³ kg⁻¹ s⁻², defined inside each function.
orbital_period_s(a_m, M_kg)— orbital period in seconds (Kepler's third law)circular_velocity_m_s(M_kg, r_m)— circular orbital speed in m/sorbital_energy_J(M_kg, m_kg, a_m)— total orbital energy in joules
Python runtime loading...
Loading...
Click "Run" to execute your code.