You will write three functions that measure heights on the Moon from light and shadow. Lengths are in km and angles in degrees.
The idea. At a distance into the lit side the Sun is radians high, with . A shadow of length with the Sun at height gives . A peak lit at beyond the terminator rises .
Your tasks.
sun_height, return the Sun's height in degrees at a distance s into the lit side.from_shadow, return the height from the shadow length and the Sun's height.from_bright_point, return the height of a peak lit at d beyond the terminator.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…