Borwein's algorithm
Appearance
Borwein's algorithm is a name usually given to the most prominent of a number of algorithms to calculate the value of π devised by Jonathan and Peter Borwein.
It works as follows:
- Start out by setting
- Then iterate
Then ak converges quartically against 1/π; that is, each iteration approximately quadruples the number of correct digits of π.