For , let contain the first terms, with . The remainder after those terms is
This is the exact absolute error. A convenient bound replaces the denominator by , giving through the triangle inequality. The exact denominator is preferable when the sign or complex phase of is known.
Figure 1.
The omitted fraction and the number of terms needed to capture 99 percent of a geometric sum
. Details.
For and , the omitted fraction of the entire sum is . Capturing at least percent therefore means . Taking logarithms and applying the ceiling function gives the smallest integer :
This gives and terms for and , respectively. The difference is a concrete reason to care about the common ratio, even when all four series converge.
An absolute target has a different scale. For , , and required absolute error at most , the total sum is and
The first acceptable term count is : the remainder is approximately , while at it is approximately . Counting terms and checking the tail avoids an ambiguous instruction to stop when a term merely looks small.

There are no discussions about this article yet.

Articles by others on the same topic (NaN)

There are currently no matching articles.