FLINT3.7.0-dev

fmpq_poly_set_coeff_si, fmpq_poly_set_coeff_ui, fmpq_poly_set_coeff_fmpz, fmpq_poly_set_coeff_fmpq

Synopsis#include <flint/fmpq_poly.h>
void fmpq_poly_set_coeff_si(fmpq_poly_t poly, slong n, slong x)source
void fmpq_poly_set_coeff_ui(fmpq_poly_t poly, slong n, ulong x)source
void fmpq_poly_set_coeff_fmpz(fmpq_poly_t poly, slong n, const fmpz_t x)source
void fmpq_poly_set_coeff_fmpq(fmpq_poly_t poly, slong n, const fmpq_t x)source

Set the coefficient of x^n, n \ge 0, in poly to x, keeping the polynomial canonical (which may change the denominator and the other numerator coefficients).

Guides#

Cite this page

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