FLINT3.7.0-dev

padic_poly_set_coeff_padic

Synopsis#include <flint/padic_poly.h>
void padic_poly_set_coeff_padic(padic_poly_t poly, slong n, const padic_t c, const padic_ctx_t ctx)source

Sets the coefficient of x^n to c, reduced to the precision of poly. If c has smaller valuation than poly, all coefficients are rescaled, so the cost can be linear in the length. The result is normalised: setting the leading coefficient to zero (or to an element of valuation at least the precision of poly) reduces the length.

Cite this page

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