You will write three small functions that measure the Earth. Angles are in degrees and distances in kilometres.
The idea. A stick of height with a shadow of length makes an angle with the sunlight, where . Eratosthenes' method gives . The horizon is at .
Your tasks.
shadow_angle, return the angle in degrees for a stick and its shadow.circumference, return the circumference for an angle and a distance between two places.horizon_km, return the distance to the horizon in km, for an eye h_m metres above the sea.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…