You are using the new UI (Beta).Return to the original UI

This page has been automatically translated by machine translation. Please note that translations may not be entirely accurate.

keisanHigh-precision calculations for everyday life and work

Calculating Pi (Gauss–Legendre’s Arithmetic-Geometric Mean Method)

Author: tonagaiExecutions: 6463

※ This library was created by a member. This site is not responsible for its content.

Manage Bookmarks
We will examine the AGM method (Gauss-Legendre algorithm, arithmetic-geometric mean method), the algorithm used by Mr. Takahashi and his colleagues at the University of Tsukuba to calculate pi to 2,576,980,370,000 digits.
Using the initial values a0=1, b0=1/√2, t0=1/4, and p0=1,
an+1 = (an + bn) / 2
bn+1 = √(anbn)
tn+1 = tn - pn * (an+1 - an)^2
pn+1 = 2*pn
Thus,
π ≈ (an + bn)^2 / (4*tn)
is used for the calculation.
Number of repetitions

No customer feedback for this calculation yet.