You will write three functions that turn the data of a transit or a Doppler shift into numbers about a planet system. Lengths are in km, wavelengths in nm and speeds in m/s.
The idea. The dip of a transit is . A Doppler shift gives with . The inner edge of the habitable zone is about .
Your tasks.
transit_depth, return the share of the star's light that is blocked, as a fraction.star_speed, return the speed of the star in m/s from the shift and the wavelength, both in nm.habitable_inner, return the inner edge of the habitable zone, in AU, for a star of luminosity lum.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…