In mathematics, Borwein's algorithm is an algorithm devised by Jonathan and Peter Borwein to calculate the value of 1/π. The most prominent and oft-used one is explained under the first section.
Borwein's algorithm
Start out by setting
: :
Then iterate
: :
Then ak converges quartically against 1/π; that is, each iteration approximately quadruples the number of correct digits.
Quadratic convergence (1987)
Start out by setting
: : :
Then iterate
: : :
Then pk converges monotonically to π; with
:
for
Cubic convergence (1991)
Start out by setting
: :
Then iterate
: : :
Then ak converges cubically against 1/π; that is, each iteration approximately triples the number of correct digits.
Quartic convergence (1984)
Start out by setting
: : :
Then iterate
: : :
Then pk 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 of π.
Quintic convergence
Start out by setting
: :
Then iterate
: : : : :
Then ak converges quintically against 1/π (that is, each iteration approximately quintuples the number of correct digits), and the following condition holds:
:
Nonic convergence
Start out by setting
: : :
Then iterate
: : : : : : :
Then ak converges nonically against 1/π; that is, each iteration approximately multiplies the number of correct digits by nine.
Another formula for π (1989)
Start out by setting
: : :
Then
:
Each additional term of the series yields approximately 31 digits.
Jonathan Borwein and Peter Borwein's Version (1993)
Start out by setting
:
Then
:
Each additional term of the series yields approximately 50 digits.
ee also
* Gauss–Legendre algorithm - another algorithm to calculate π
* Bailey-Borwein-Plouffe formula