You will write three functions for an observer who tracks an aircraft flying level. Heights and distances are in metres, angles in degrees, times in seconds.
The idea. At height and horizontal distance the angle of elevation is . From two angles and a time, the speed is . The angle changes at radians per second.
Your tasks.
elevation(H, x). Return the angle of elevation in degrees.speed(H, beta, alpha, t). Return the speed when the angle falls from beta to alpha in t seconds.angle_rate(H, v, theta). Return the rate of change of the angle in degrees per second.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…