The arithmetic-geometric mean #
Starting with two nonnegative real numbers, repeatedly replace them with their arithmetic and geometric means. By the AM-GM inequality, the smaller number (geometric mean) will monotonically increase and the larger number (arithmetic mean) will monotonically decrease.
The two monotone sequences converge to the same limit β the arithmetic-geometric mean (AGM).
This file defines the AGM in the NNReal namespace and proves some of its basic properties.
References #
- https://en.wikipedia.org/wiki/Arithmeticβgeometric_mean
The AMβGM inequality for two NNReals, with means in canonical form.
agmSequences x y is the sequence of (geometric, arithmetic) means
converging to the arithmetic-geometric mean starting from x and y.
Equations
Instances For
The arithmetic-geometric mean of two NNReals, defined as the infimum of arithmetic means.
Equations
Instances For
The AGM is also the supremum of the geometric means.
The AGM distributes over multiplication.