# How Flight Works 6, Exercise 1: how fast did speeds really grow? # Compound growth: factor = (end / start) ** (1 / years) per year. # Illustrative round figures for a fast aircraft of each year, not real data. points = ((1914, 130.0), (1918, 220.0), (1939, 570.0), (1945, 870.0)) for (y0, s0), (y1, s1) in zip(points, points[1:]): yearly = (s1 / s0) ** (1 / (y1 - y0)) - 1 print(y0, "to", y1, "->", round(s0), "to", round(s1), "km/h, growth per year:", round(yearly * 100, 1), "%") # Output when run: # 1914 to 1918 -> 130 to 220 km/h, growth per year: 14.1 % # 1918 to 1939 -> 220 to 570 km/h, growth per year: 4.6 % # 1939 to 1945 -> 570 to 870 km/h, growth per year: 7.3 % # # Growth was fastest in the war years of 1914-1918 and again in 1939-1945, with a # slower pace between them. That is what "accelerator" means in this chapter.