You will write three functions that describe an orbit from its perihelion and aphelion distances, in AU.
The idea. and . In solar units the period is years, with in solar masses.
Your tasks.
semi_major_axis, return from and .eccentricity, return from and .period_years, return the period from , and the mass of the star.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…