Arithmetic-geometric mean: Difference between revisions

Content added Content deleted
m (elided a doubly linked to URL.)
Line 5: Line 5:
;Task:
;Task:
Write a function to compute the [[wp:Arithmetic-geometric mean|arithmetic-geometric mean]] of two numbers.
Write a function to compute the [[wp:Arithmetic-geometric mean|arithmetic-geometric mean]] of two numbers.

[http://mathworld.wolfram.com/Arithmetic-GeometricMean.html]

The arithmetic-geometric mean of two numbers can be (usefully) denoted as <math>\mathrm{agm}(a,g)</math>, and is equal to the limit of the sequence:
The arithmetic-geometric mean of two numbers can be (usefully) denoted as <math>\mathrm{agm}(a,g)</math>, and is equal to the limit of the sequence:
: <math>a_0 = a; \qquad g_0 = g</math>
: <math>a_0 = a; \qquad g_0 = g</math>