Pi iterations are iterative algorithms for computing pi. Examples include the Archimedes
algorithm and the Brent-Salamin formula.
Borwein et al. (1989) discuss th-order iterative algorithms.
The Brent-Salamin formula is a quadratically converging algorithm.
Another quadratically converging algorithm (Borwein and Borwein 1987, pp. 46-48) is obtained by defining
|
(1)
| |||
|
(2)
|
and, for positive integers ,
|
(3)
| |||
|
(4)
|
where the recurrence relation for applies for
. Then, for
,
|
(5)
|
with .
The sequence
decreases monotonically
to
with
|
(6)
|
for .
The simple iteration
|
(7)
|
converges cubically to
when
and
is an integer. An initial value
remains fixed (Beeler et al. 1972, Item 142).
For example, starting with
gives the sequence 23, 22.1537796,
21.99186453, 21.99114858, ..., which converges to
.
For a positive real number , a quartically converging algorithm
is obtained by letting
|
(8)
| |||
|
(9)
|
where
is the elliptic lambda function and
is the elliptic
alpha function, then defining, for positive integers
,
|
(10)
| |||
|
(11)
|
Then
|
(12)
|
and
converges to
quartically with
|
(13)
|
(Borwein and Borwein 1987, pp. 170-171; Bailey 1988, Borwein et al. 1989). This algorithm rests on a modular
equation identity of order 4. Taking the special case gives
and
.
A quintically converging algorithm is obtained by letting
|
(14)
| |||
|
(15)
|
For nonnegative integers , let
|
(16)
|
where ,
, and
. Finally, let
|
(17)
|
then
|
(18)
|
(Borwein et al. 1989). This algorithm rests on a modular equation identity of order 5.
Beginning with a positive integer , round up to the nearest
multiple of
,
then up to the nearest multiple of
, and so on, up to the nearest multiple of 1. Let
denote the result and define
. Then the ratio
|
(19)
|
David (1957) credits this result to Jabotinski and Erdős and gives the more precise asymptotic result
|
(20)
|
The first few numbers in the sequence are 1, 2, 4, 6, 10, 12, 18, 22, 30, 34, ... (OEIS A002491).
Another algorithm is due to Woon (1995). Define and, for positive
integers
,
|
(21)
|
It can be proved by mathematical induction that
|
(22)
|
For ,
the identity holds. If it holds for
, then
|
(23)
|
but
|
(24)
|
so
|
(25)
|
Therefore,
|
(26)
|
so the identity holds for and, by mathematical
induction, for all nonnegative integers
, and
|
(27)
| |||
|
(28)
| |||
|
(29)
|