FLINT3.7.0-dev

n_poly_get_coeff, n_poly_set_coeff, n_poly_set_coeff_nonzero

Synopsis#include <flint/n_poly.h>
ulong n_poly_get_coeff(const n_poly_t poly, slong j)source
void n_poly_set_coeff(n_poly_t A, slong e, ulong c)source
void n_poly_set_coeff_nonzero(n_poly_t A, slong j, ulong c)source

Get or set the coefficient of x^j (or x^e). n_poly_set_coeff normalises the result; n_poly_set_coeff_nonzero requires c \ne 0. The value is not reduced.

Cite this page

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