You will write three functions about how much speed a rocket can gain, and where to launch it from.
The idea. The rocket equation is , written exhaust * math.log(full / empty). Turned round, the mass ratio needed for a speed change is , written math.exp(dv / exhaust). The ground at latitude moves east at .
Your tasks.
delta_v, return the speed change in m/s.ratio_needed, return the mass ratio needed for a speed change dv.east_speed, return the speed of the ground at a latitude given in degrees.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…