Unbounded Spigot Algorithms for the Digits of Pi

From MaRDI portal





A spigot algorithm produces in succession the digits of a given number. The algorithm of \textit{S. Rabinowitz} and \textit{S. Wagon} [Am. Math. Mon. 102, 195--203 (1995; Zbl 0853.11102)] is based on the fact that \(\pi\) has the representation \((2;2,2,\dots)\) with respect to the mixed-radix base \({\mathcal B}=(1/3,2/5,3/7,\dots)\). The decimal digits are simply obtained by converting from base \({\mathcal B}\) to base 10. For this transformation Rabinowitz and Wagon work from right to left. They have to commit a bound, where this transformation starts; the algorithm is bounded. The author of the present paper proposes a method for the transformation to decimal base which works from left to right and therefore can be pursued indefinitely, at least in theory. As a secondary point the author gives a short introduction into the programming language Haskell and tries to convince the reader that this language is an excellent vehicle for expressing mathematical computations





Describes a project that uses

Uses Software






This page was built for publication: Unbounded Spigot Algorithms for the Digits of Pi

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5479783)