# Time 6, Exercise 1: counting the beats of a verge escapement, and what a small error costs SECONDS_PER_DAY = 86400 teeth = 15 # an idealised crown wheel (real ones had an odd number of teeth) beat = 2.0 # seconds per beat: one swing of the foliot from one side to the other # Each beat advances the wheel by half a tooth (one pallet releases, the other catches), # so one tooth passes every TWO beats. beats_per_wheel_turn = teeth * 2 print("beats per wheel turn:", beats_per_wheel_turn) print("seconds per wheel turn:", beats_per_wheel_turn * beat) beats_per_day = SECONDS_PER_DAY / beat print("beats per day:", int(beats_per_day)) print("teeth released per day:", int(beats_per_day / 2)) print("wheel turns per day:", beats_per_day / beats_per_wheel_turn) # Now the foliot weights drift outward and each beat takes 2.02 s instead of 2.00 s. # The gear train still counts beats as if each were 2.00 s long. slow_beat = 2.02 beats_counted = SECONDS_PER_DAY / slow_beat # beats that really happen in one real day clock_shows = beats_counted * beat # what the dial claims that adds up to lost = SECONDS_PER_DAY - clock_shows print("beats in a real day at 2.02 s:", round(beats_counted, 1)) print("clock reads", round(clock_shows, 1), "s; loses", round(lost, 1), "s =", round(lost / 60, 1), "minutes a day") # What beat length would lose a quarter of an hour (900 s) a day? target_beat = beat * SECONDS_PER_DAY / (SECONDS_PER_DAY - 900) print("beat that loses 15 minutes a day:", round(target_beat, 4), "s") print("that is a change of only", round((target_beat - beat) / beat * 100, 2), "percent") # Output when run: # beats per wheel turn: 30 # seconds per wheel turn: 60.0 # beats per day: 43200 # teeth released per day: 21600 # wheel turns per day: 1440.0 # beats in a real day at 2.02 s: 42772.3 # clock reads 85544.6 s; loses 855.4 s = 14.3 minutes a day # beat that loses 15 minutes a day: 2.0211 s # that is a change of only 1.05 percent # Reading the output: a beat only 0.02 s too long (one percent) already costs over # fourteen minutes a day. That is why a verge clock needed setting against a sundial # so often: its rate depended on friction, the drive weight and the foliot, all of # which wandered by about a percent.