Jump to content

Spigot algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Goofyheadedpunk (talk | contribs) at 21:03, 2 December 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Spigot algorithms are used to compute the values of the mathematical constants (most famously) pi and e. Unlike recursive algorithms, a spigot algorithm yields outputs incrementally without referring to previously computed digits. The number of digits to be computed is specified in advance, and may still produce an incorrect last few digits.