FLINT3.7.0-dev

acb_agm

Synopsis#include <flint/acb.h>
void acb_agm(acb_t res, const acb_t a, const acb_t b, slong prec)source

Sets res to the arithmetic-geometric mean of a and b, with the square roots chosen to give the optimal AGM sequence. This is well defined except when a/b is a negative real number, where there are two optimal sequences; then an arbitrary but consistent choice is made, or the union of both when the choice cannot be decided.

Guides#

Cite this page

The FLINT team, “acb_agm (acb.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb/acb_agm.html (generated 2026-10-20).