# Time 8, Exercise 3: lunar distances, and temperature on a spring-driven timekeeper import math # Part 1: the Moon as a clock hand. sidereal_month = 27.32 # days for the Moon to circle the sky against the stars deg_per_day = 360 / sidereal_month arcmin_per_minute = deg_per_day * 60 / (24 * 60) print("Moon moves", round(deg_per_day, 2), "degrees a day,", round(arcmin_per_minute, 3), "arcminutes per minute of time") # If your lunar distance is off by 1 arcminute, your Greenwich time is off by: minutes_wrong = 1 / arcmin_per_minute print("1 arcminute error in the angle = ", round(minutes_wrong, 2), "min of time error") print(" = ", round(minutes_wrong * 15, 1), "arcminutes of longitude =", round(minutes_wrong * 15 / 60, 2), "degrees") # Part 2: an uncompensated balance spring. Period T = 2 pi sqrt(I / k). # Assumed figures: steel spring stiffness k falls about 0.024 percent per degree C when warmer, # and the balance expands with alpha = 12e-6 per degree C (so I grows by 2 alpha, since I ~ r^2). k_change = -2.4e-4 alpha = 12e-6 def daily_error(delta_c): k_ratio = 1 + k_change * delta_c i_ratio = 1 + 2 * alpha * delta_c t_ratio = math.sqrt(i_ratio / k_ratio) return (t_ratio - 1) * 86400 # positive = slower, so the clock loses time for d in (1, 10, 25): print(d, "C warmer: loses", round(daily_error(d), 1), "s a day") # Part 3: how much does it matter for the prize? print("25 C swing, uncompensated, over 42 days:", round(daily_error(25) * 42 / 60, 1), "minutes lost") # Output when run: # Moon moves 13.18 degrees a day, 0.549 arcminutes per minute of time # 1 arcminute error in the angle = 1.82 min of time error # = 27.3 arcminutes of longitude = 0.46 degrees # 1 C warmer: loses 11.4 s a day # 10 C warmer: loses 114.2 s a day # 25 C warmer: loses 286.4 s a day # 25 C swing, uncompensated, over 42 days: 200.5 minutes lost # Reading the output: the Moon moves about half its own width an hour (0.55 arcminute per # minute of time), so even reading the angle to 1 arcminute leaves about 1.8 minutes of time # error, which is 0.46 degrees of longitude. Measuring a lunar distance by hand, on a swaying # deck, to that accuracy was hard. The temperature figures (which rest on assumed typical # values) show why a plain spring watch was hopeless: a 10 degree change costs about two # minutes a day. Temperature compensation was therefore as important as good bearings and a # good escapement.