acb_hypgeom_legendre_p
#include <flint/acb_hypgeom.h>void acb_hypgeom_legendre_p(acb_t res, const acb_t n, const acb_t m, const acb_t z, int type, slong prec)sourceSets res to the associated Legendre function of the first kind of degree , order and argument ; for this is the Legendre polynomial . Several branch cut conventions are in use. If type is 0, the function is
with cuts and , and if type is 1, the function is
with the cut . Type 0 and type 1 correspond to type 2 and type 3 in Mathematica and mpmath; other values of type raise an exception.
For real , and a nonnegative word-size integer , the function calls arb_hypgeom_legendre_p_ui. For integers and type 0 it evaluates times the polynomial of acb_hypgeom_legendre_p_uiui_rec at low precision, near , or for small ; if the result is indeterminate, since the recurrence would lose all accuracy. Otherwise the hypergeometric representation is evaluated with acb_hypgeom_2f1.
The FLINT team, “acb_hypgeom_legendre_p (acb_hypgeom.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_hypgeom/acb_hypgeom_legendre_p.html (generated 2026-11-02).
@misc{flint-doc-acb-hypgeom-acb-hypgeom-legendre-p,
author = {{The FLINT team}},
title = {{acb\_hypgeom\_legendre\_p (acb\_hypgeom.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/acb_hypgeom/acb_hypgeom_legendre_p.html},
note = {Generated 2026-11-02}
}