FLINT3.7.0-dev

gr_legendre_p_root_ui

Synopsis#include <flint/gr_special.h>
int gr_legendre_p_root_ui(gr_ptr root, gr_ptr weight, ulong n, ulong k, gr_ctx_t ctx)source

Sets root to the root of index k of the Legendre polynomial P_n(x), with 0 \le k < n and the roots ordered by decreasing value, and, if weight is not NULL, weight to the corresponding weight of Gauss–Legendre quadrature (as arb_hypgeom_legendre_p_ui_root). GR_DOMAIN if k \ge n.

Cite this page

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