# Exercise 3: temperature change from d18O with two different slopes BASE = -35.0 VALUES = [-36.0, -39.0, -42.0, -44.0] print(" d18O (per mil) slope 0.67 (C) slope 0.50 (C) gap (C)") for d in VALUES: a = (d - BASE) / 0.67 b = (d - BASE) / 0.50 print(f"{d:12.1f} {a:+12.1f} {b:+12.1f} {abs(a - b):7.1f}") # d18O (per mil) slope 0.67 (C) slope 0.50 (C) gap (C) # -36.0 -1.5 -2.0 0.5 # -39.0 -6.0 -8.0 2.0 # -42.0 -10.4 -14.0 3.6 # -44.0 -13.4 -18.0 4.6 # Notes: the two slopes agree within about half a degree for small changes but differ by several degrees for large ones. # The slope is not a constant of nature, so reconstructed temperatures carry an uncertainty that grows with the size of the change.