agm function

Arithmetic-geometric mean

Arithmetic-geometric mean

Evaluation of the arithmetic-geometric mean of two complex numbers.

agm(x, y)

Arguments

  • x, y: complex numbers

Returns

A complex number, the arithmetic-geometric mean of x

and y.

Examples

agm(1, sqrt(2)) 2*pi^(3/2)*sqrt(2) / gamma(1/4)^2
  • Maintainer: Stéphane Laurent
  • License: GPL-3
  • Last published: 2023-11-18