In
mathematics, Borwein's algorithm is an
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
devised by
Jonathan and
Peter Borwein
Peter Benjamin Borwein (born St. Andrews, Scotland, May 10, 1953 – 23 August 2020) was a Canadian mathematician
and a professor at Simon Fraser University. He is known as a co-author of the paper which presented the Bailey–Borwein–Plo ...
to calculate the value of . They devised several other algorithms. They published the book ''Pi and the AGM – A Study in Analytic Number Theory and Computational Complexity''.
Ramanujan–Sato series
These two are examples of a
Ramanujan–Sato series In mathematics, a Ramanujan–Sato series generalizes Ramanujan’s pi formulas such as,
:\frac = \frac \sum_^\infty \frac \frac
to the form
:\frac = \sum_^\infty s(k) \frac
by using other well-defined sequences of integers s(k) obeying a cer ...
. The related
Chudnovsky algorithm
The Chudnovsky algorithm is a fast method for calculating the digits of , based on Ramanujan’s formulae. It was published by the Chudnovsky brothers in 1988.
It was used in the world record calculations of 2.7 trillion digits of in December ...
uses a discriminant with class number 1.
Class number 2 (1989)
Start by setting
:
Then
:
Each additional term of the partial sum yields approximately 25 digits.
Class number 4 (1993)
Start by setting
:
Then
:
Each additional term of the series yields approximately 50 digits.
Iterative algorithms
Quadratic convergence (1984)
Start by setting
:
Then iterate
:
Then ''p''
''k'' converges quadratically to ; that is, each iteration approximately doubles the number of correct digits. The algorithm is ''not'' self-correcting; each iteration must be performed with the desired number of correct digits for 's final result.
Cubic convergence (1991)
Start by setting
:
Then iterate
:
Then ''a
k'' converges cubically to ; that is, each iteration approximately triples the number of correct digits.
Quartic convergence (1985)
Start by setting
:
Then iterate
:
Then ''a''
''k'' converges quartically against ; that is, each iteration approximately quadruples the number of correct digits. The algorithm is ''not'' self-correcting; each iteration must be performed with the desired number of correct digits for 's final result.
One iteration of this algorithm is equivalent to two iterations of the
Gauss–Legendre algorithm.
A proof of these algorithms can be found here:
Quintic convergence
Start by setting
:
where
is the
golden ratio
In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Expressed algebraically, for quantities a and b with a > b > 0,
where the Greek letter phi ( ...
. Then iterate
:
Then a
k converges quintically to (that is, each iteration approximately quintuples the number of correct digits), and the following condition holds:
:
Nonic convergence
Start by setting
:
Then iterate
:
Then ''a''
''k'' converges nonically to ; that is, each iteration approximately multiplies the number of correct digits by nine.
[{{cite web, url=http://www.hvks.com/Numerical/Downloads/HVE%20Practical%20implementation%20of%20PI%20Algorithms.pdf, title=Practical implementation of π Algorithms, author=Henrik Vestermark, date=4 November 2016, access-date=29 November 2020]
See also
*
Bailey–Borwein–Plouffe formula
The Bailey–Borwein–Plouffe formula (BBP formula) is a formula for . It was discovered in 1995 by Simon Plouffe and is named after the authors of the article in which it was published, David H. Bailey, Peter Borwein, and Plouffe. Before that ...
*
Chudnovsky algorithm
The Chudnovsky algorithm is a fast method for calculating the digits of , based on Ramanujan’s formulae. It was published by the Chudnovsky brothers in 1988.
It was used in the world record calculations of 2.7 trillion digits of in December ...
*
Gauss–Legendre algorithm
*
Ramanujan–Sato series In mathematics, a Ramanujan–Sato series generalizes Ramanujan’s pi formulas such as,
:\frac = \frac \sum_^\infty \frac \frac
to the form
:\frac = \sum_^\infty s(k) \frac
by using other well-defined sequences of integers s(k) obeying a cer ...
References
External links
Pi Formulasfrom Wolfram MathWorld
Pi algorithms