Sets r to the complete elliptic integral of the third kind Π(n,m)=∫0π/2(1−nsin2t)−1(1−msin2t)−1/2dt. For n=0 this is K(m) and for m=0 it is 2π(1−n)−1/2; otherwise it is computed as RF(0,1−m,1)+3nRJ(0,1−m,1,1−n), the same reduction as for the incomplete integral, which is slower than the AGM methods for K and E.
The FLINT team, “acb_elliptic_pi (acb_elliptic.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_elliptic/acb_elliptic_pi.html (generated 2026-11-02).
@misc{flint-doc-acb-elliptic-acb-elliptic-pi,
author = {{The FLINT team}},
title = {{acb\_elliptic\_pi (acb\_elliptic.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/acb_elliptic/acb_elliptic_pi.html},
note = {Generated 2026-11-02}
}