Jump to content

Salamin-Brent algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 131.183.84.166 (talk) at 23:45, 24 May 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.