You will write three small functions that a surveyor could use in the field. Angles are in degrees, as on the instrument.
The idea. A horizontal distance is . On the same side, . On opposite sides the cotangents add. An angle of elevation comes back from a height and a distance with atan.
Your tasks.
same_side(d, alpha, beta). Return the height when is metres further back than .opposite_sides(d, alpha, beta). Return the height when the tower stands between the two stations.elevation(h, x). Return the angle of elevation in degrees of a top metres high, seen from metres away.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…