FLINT3.7.0-dev

arb_hypgeom_legendre_p_ui_zero, arb_hypgeom_legendre_p_ui_one, arb_hypgeom_legendre_p_ui_asymp, arb_hypgeom_legendre_p_ui_rec, arb_hypgeom_legendre_p_ui

Synopsis#include <flint/arb_hypgeom.h>
void arb_hypgeom_legendre_p_ui_zero(arb_t res, arb_t res_prime, ulong n, const arb_t x, slong K, slong prec)source
void arb_hypgeom_legendre_p_ui_one(arb_t res, arb_t res_prime, ulong n, const arb_t x, slong K, slong prec)source
void arb_hypgeom_legendre_p_ui_asymp(arb_t res, arb_t res_prime, ulong n, const arb_t x, slong K, slong prec)source
void arb_hypgeom_legendre_p_ui_rec(arb_t res, arb_t res_prime, ulong n, const arb_t x, slong prec)source
void arb_hypgeom_legendre_p_ui(arb_t res, arb_t res_prime, ulong n, const arb_t x, slong prec)source

Sets res to the Legendre polynomial P_n(x) and res_prime to its derivative P'_n(x). Either output may be NULL.

The algorithm is that of Johansson and Mezzarobba [JM2018]; see Legendre functions and orthogonal polynomials.

References#

  • [JM2018] F. Johansson and M. Mezzarobba, "Fast and rigorous arbitrary-precision computation of Gauss-Legendre quadrature nodes and weights", preprint (2018), https://arxiv.org/abs/1802.03948
  • [Bog2012] I. Bogaert, B. Michiels and J. Fostier, "O(1) computation of Legendre polynomials and Gauss-Legendre nodes and weights for parallel computing", SIAM Journal on Scientific Computing 34:3 (2012), C83-C101
Cite this page

The FLINT team, “arb_hypgeom_legendre_p_ui_zero, arb_hypgeom_legendre_p_ui_one, arb_hypgeom_legendre_p_ui_asymp, arb_hypgeom_legendre_p_ui_rec, arb_hypgeom_legendre_p_ui (arb_hypgeom.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arb_hypgeom/arb_hypgeom_legendre_p_ui_zero.html (generated 2026-10-20).