Salamin-Brent algorithm
Appearance
The Salamin-Brent algorithm is an algorithm to calculate π that was independently discovered in 1976 by Eugene Salamin and Richard Brent; it is based on the arithmetic-geometric mean.
It works as follows:
- Start out by setting
- Then iterate
Then pk converges quadratically against π; that is, each iteration approximately doubles the number of correct digits.