# Time 8, Exercise 2: drift budgets for a sea voyage, and Harrison's trials SECONDS_PER_DAY = 86400 equator_km = 40075 # The Longitude Act of 1714 prizes: 1 degree, 40 arcminutes, 30 arcminutes. # The test was a voyage to the West Indies, about six weeks (42 days) in the code below. days = 42 for name, arcmin in (("1 degree", 60), ("40 arcminutes", 40), ("30 arcminutes", 30)): seconds_of_time = arcmin * 4 # 1 arcminute of longitude = 4 seconds of time per_day = seconds_of_time / days print(name, "=", seconds_of_time, "s of time ->", round(per_day, 2), "s a day allowed") # Position error if a clock drifts steadily for the whole voyage def error_km(drift_s_per_day, days): seconds = drift_s_per_day * days degrees = seconds * 15 / 3600 # 1 second of time = 15 arcseconds = 1/240 degree return degrees * equator_km / 360 print("a clock gaining 1 s a day over 42 days: position off by", round(error_km(1, 42), 1), "km at the equator") print("a clock gaining 10 s a day over 42 days:", round(error_km(10, 42), 1), "km") # Harrison's H4, first trial, 1761-62: about 5 seconds slow in 81 days (commonly quoted) rate = 5.1 / 81 print("H4 trial rate:", round(rate, 3), "s a day") print(" over 42 days it would drift", round(rate * 42, 2), "s, or", round(error_km(rate, 42), 2), "km") # How much better than the best prize threshold? print("30-arcminute limit divided by H4 rate:", round((30 * 4 / 42) / rate, 1), "times") # Output when run: # 1 degree = 240 s of time -> 5.71 s a day allowed # 40 arcminutes = 160 s of time -> 3.81 s a day allowed # 30 arcminutes = 120 s of time -> 2.86 s a day allowed # a clock gaining 1 s a day over 42 days: position off by 19.5 km at the equator # a clock gaining 10 s a day over 42 days: 194.8 km # H4 trial rate: 0.063 s a day # over 42 days it would drift 2.64 s, or 1.23 km # 30-arcminute limit divided by H4 rate: 45.4 times # Reading the output: a half degree in six weeks means a clock good to under 3 seconds a day, # at a time when a fine pendulum clock on land drifted by seconds a day and a ship's motion # upset pendulums entirely. H4's 0.063 s a day (a rate that was really measured and corrected for) # beat the top prize limit by a factor of about 45.