acb_elliptic_pi_inc
#include <flint/acb_elliptic.h>void acb_elliptic_pi_inc(acb_t res, const acb_t n, const acb_t phi, const acb_t m, int times_pi, slong prec)sourceSets res to the incomplete elliptic integral of the third kind \Pi(n, \phi, m) = \int_0^\phi (1 - n \sin^2 t)^{-1} (1 - m \sin^2 t)^{-1/2} \, dt, extended by \Pi(n, \phi + d\pi, m) = 2 d \Pi(n, m) + \Pi(n, \phi, m). With times_pi nonzero, \phi is replaced by \pi \phi. In particular \Pi(n, \pi/2, m) = \Pi(n, m) and \Pi(0, \phi, m) = F(\phi, m).
With times_pi and a non-real \phi, the function multiplies \phi by \pi and proceeds as without the flag, because the exact argument reduction can otherwise land exactly on a branch cut of R_J.
The FLINT team, “acb_elliptic_pi_inc (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_inc.html (generated 2026-10-20).
@misc{flint-doc-acb-elliptic-acb-elliptic-pi-inc,
author = {{The FLINT team}},
title = {{acb\_elliptic\_pi\_inc (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_inc.html},
note = {Generated 2026-10-20}
}