You will write three small functions about the Sun at noon. Angles are in degrees. Latitudes and declinations are negative to the south.
The idea. The simple rule gives the declination on day : . The noon height is . A vertical pole of height casts a noon shadow long.
Your tasks.
declination, return the Sun's declination on day day.noon_height, return the noon height for a latitude and a declination.shadow_length, return the length of a pole's noon shadow.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…