Borwein's algorithm was devised by Jonathan and Peter Borwein to calculate the value of . This and other algorithms can be found in the book Pi and the AGM â A Study in Analytic Number Theory and Computational Complexity.
These two are examples of a RamanujanâÂÂSato series. The related Chudnovsky algorithm uses a discriminant with class number 1.
Start by setting
Then
Each additional term of the partial sum yields approximately 25 digits.
Start by setting
Then
Each additional term of the series yields approximately 50 digits.
Start by setting
Then iterate
Then p<sub>k</sub> 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.
Start by setting
Then iterate
Then a<sub>k</sub> converges cubically to ; that is, each iteration approximately triples the number of correct digits.
Start by setting
Then iterate
Then a<sub>k</sub> 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:
Start by setting
where is the golden ratio. Then iterate
Then a<sub>k</sub> converges quintically to (that is, each iteration approximately quintuples the number of correct digits), and the following condition holds:
Start by setting
Then iterate
Then a<sub>k</sub> converges nonically to ; that is, each iteration approximately multiplies the number of correct digits by nine.