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-geometric-series-adds-up

The geometric series adds up

never reaches 2, and the partial sums say exactly how far short: . The general fact is , and when the goes to zero and the whole series is . The program adds the terms one by one and checks the formula at every .

The trick that gives the formula: multiply by and subtract. Every term cancels except the first of and the last of :

The figure draws the running sums for and against their limits 2 and 10. The series takes 44 terms to get within 1% of its limit; the series takes 7. The tests check the formula at every up to 50, how close fifty terms of the series get to 10, and one more series with , .

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 23–90