TOPICS
Search

Borchardt Algorithm


The Borchardt algorithm is an iteration of arithmetic means and geometric means that evaluates logarithms and inverse trigonometric functions (Carlson 1971, 1972). For positive initial values a_0=a and b_0=b, its recurrence is

a_(n+1)=(a_n+b_n)/2
(1)
b_(n+1)=sqrt(a_(n+1)b_n).
(2)

The second step uses the newly computed a_(n+1), unlike the ordinary arithmetic-geometric mean. Both sequences converge to the common limit

 L(a,b)={(sqrt(b^2-a^2))/(tan^(-1)(sqrt(b^2-a^2)/a))   if a<b; a   if a=b; (sqrt(a^2-b^2))/(tanh^(-1)(sqrt(a^2-b^2)/a))   if a>b.
(3)

The iteration evaluates the symmetric integral R_C in the Carlson elliptic integrals. For a,b>0, the duplication formula for RC(a2,b2) gives

 R_C(a^2,b^2)=R_C(((a+b)/2)^2,((a+b)b)/2).
(4)

Thus R_C(a_n^2,b_n^2) is constant, and since R_C(L^2,L^2)=1/L,

 L(a,b)=1/(R_C(a^2,b^2)).
(5)

The inverse circular functions and inverse hyperbolic functions in the limit formula follow from the elementary reductions of R_C (NIST Digital Library of Mathematical Functions, eqs. 19.2.18 and 19.26.26). Neuman (2007) uses inequalities for R_C to bound combinations of inverse circular functions and inverse hyperbolic functions.

For unequal initial values, the errors of both sequences have limiting ratio 1/4. The unaccelerated iteration therefore has linear convergence, rather than the quadratic convergence of the ordinary arithmetic-geometric mean (Carlson 1972).

For a real number x, the choice a_0=1, b_0=sqrt(1+x^2) gives

 tan^(-1)x=x/(L(1,sqrt(1+x^2))).
(6)

For x>0, the choice a_0=(1+x)/2, b_0=sqrt(x) instead gives

 lnx=(x-1)/(L((1+x)/2,sqrt(x))).
(7)

Carlson (1972) accelerates the iteration by extrapolating its successive values.

Taking reciprocals converts the iteration into a harmonic mean followed by a geometric mean. This is Archimedes' recurrence formula, used by the Archimedes algorithm to bound pi.


See also

Archimedes Algorithm, Arithmetic-Geometric Mean, Inverse Tangent, Logarithm

Explore with Wolfram|Alpha

References

Carlson, B. C. "Algorithms Involving Arithmetic and Geometric Means." Amer. Math. Monthly 78, 496-505, 1971. https://doi.org/10.1080/00029890.1971.11992791.Carlson, B. C. "An Algorithm for Computing Logarithms and Arctangents." Math. Comput. 26, 543-549, 1972. https://doi.org/10.1090/S0025-5718-1972-0307438-2.Neuman, E. "Inequalities Involving Inverse Circular and Inverse Hyperbolic Functions." Univ. Beograd. Publ. Elektrotehn. Fak. Ser. Mat. 18, 32-37, 2007. https://doi.org/10.2298/PETF0718032N.NIST Digital Library of Mathematical Functions. Eqs. 19.2.18 and 19.26.26. https://dlmf.nist.gov/19.2.E18 and https://dlmf.nist.gov/19.26.E26.

Cite this as:

Weisstein, Eric W. "Borchardt Algorithm." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/BorchardtAlgorithm.html

Subject classifications