FLINT3.7.0-dev

_nmod_poly_interpolation_weights

Synopsis#include <flint/nmod_poly.h>
void _nmod_poly_interpolation_weights(nn_ptr w, const nn_ptr * tree, slong len, nmod_t mod)source

Sets w[i] to the barycentric weight 1 / \prod_{j \ne i} (x_i - x_j) = 1 / P'(x_i), where P = \prod_j (x - x_j) for the points of tree.

Cite this page

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