Source: https://kmhs.typepad.com/files/expanding-and-condensing-logs---math-lib.pdf