This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · posts/doubling-time

Doubling time

Something growing 7% a year doubles in years, not : growth compounds. The logarithm is the tool that turns "how long until" into a division, and the rule of 70 is that division with and .

Growth by a fixed fraction each year is . Asking when means solving for , and is in the exponent; the logarithm brings it down:

Any base works, since a ratio of logs does not depend on the base.

For small , and , so : the rule of 70. It is 2.4% off at 7% and 0.5% off at 3%, and a test checks both. The figure draws against the straight line , which is what "7% a year" would mean if growth did not compound.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 26–69