Prize37 Chapter 4, Exercise 2 Side ponds on a wide lock Task The same wide lock (22 m by 3.6 m, lift 3.0 m) is fitted with two side ponds, each of the chamber's area. Find the water taken from the summit per passage with 0, 1 and 2 ponds, then the water saved per day at 30 passages. Why would the saving per extra pond keep getting smaller? Code (run with Python) def top_up(n, lift, cycles=200): ponds = [lift * (n - i) / (n + 1) for i in range(n)] for _ in range(cycles): level = lift for i in range(n): level = (level + ponds[i]) / 2 ponds[i] = level level = 0.0 for i in reversed(range(n)): level = (level + ponds[i]) / 2 ponds[i] = level return lift - level area, lift = 22.0 * 3.6, 3.0 for n in (0, 1, 2): d = top_up(n, lift) print(n, "side ponds: water from summit per passage (m3):", round(d * area, 1)) print("saved by two ponds per passage (m3):", round((lift - top_up(2, lift)) * area, 1)) print("saved per day at 30 passages (m3):", round(30 * (lift - top_up(2, lift)) * area)) Output (exactly as printed) 0 side ponds: water from summit per passage (m3): 237.6 1 side ponds: water from summit per passage (m3): 158.4 2 side ponds: water from summit per passage (m3): 118.8 saved by two ponds per passage (m3): 118.8 saved per day at 30 passages (m3): 3564 Answer With no ponds each passage takes 237.6 cubic metres, with one pond 158.4 and with two ponds 118.8. Two ponds save 118.8 cubic metres per passage, about 3,564 cubic metres a day at 30 passages, exactly half. The saving per extra pond shrinks because each new pond can only recover water from a smaller remaining step: the first pond saves a third, the second a further sixth, the third a further tenth (n/(n+2) in total), while each still costs land, paddles and operating time. The result is an ideal figure with equal-area ponds and no losses.