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/the-rule-of-72-against-the-rule-of-70

The rule of 72 against the rule of 70

A copy of the doubling-time post that adds the rule of 72. Above a rate of 4.90% a year it is closer to the exact doubling time than the rule of 70, and below that the rule of 70 is closer; at 8% the rule of 72 is off by 0.07%. The original four tests are kept word for word.

The site checks that the original's tests are here unchanged and still pass, and that the tests below them are new.

Both rules approximate . Expanding the logarithm one more term gives , so the exact time, multiplied by , is not a constant: it is 69.3 plus about . At 3% that is 70.3, and 70 is the closer rule; at 8% it is 72.1, and 72 is. The program finds the rate where the two rules are equally far off by bisection: 4.90%.

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 22–115