# How Flight Works 7, Exercise 1: the same speed, a different Mach number # Speed of sound a = 20.05 * sqrt(T) m/s, with T in kelvin; multiply by 3.6 for km/h. # Air temperature falls 6.5 C per km up to 11 km, then stays constant (simple model). from math import sqrt SPEED = 1000.0 # km/h, the aircraft's speed for h in (0, 5, 8, 11): t = 288.15 - 6.5 * min(h, 11) a = 20.05 * sqrt(t) * 3.6 print(h, "km ->", round(a), "km/h speed of sound, Mach", round(SPEED / a, 2)) # Output when run: # 0 km -> 1225 km/h speed of sound, Mach 0.82 # 5 km -> 1154 km/h speed of sound, Mach 0.87 # 8 km -> 1109 km/h speed of sound, Mach 0.9 # 11 km -> 1062 km/h speed of sound, Mach 0.94 # # The aircraft does not speed up, but the speed of sound falls as the air cools, so # its Mach number rises with height. Cold air at cruise altitude brings the # aircraft closer to the trouble zone sooner.