FLINT3.7.0-dev

_nf_elem_set_coeff_num_fmpz

Synopsis#include <flint/nf_elem.h>
void _nf_elem_set_coeff_num_fmpz(nf_elem_t a, slong i, const fmpz_t b, const nf_t nf)source

Sets the coefficient of θi\theta^i in the numerator of aa to bb, keeping the denominator, and canonicalises. Allows ii up to 2(d−1)2(d - 1), so that the result may be unreduced; throws for larger ii.

Cite this page

The FLINT team, “_nf_elem_set_coeff_num_fmpz (nf_elem.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nf_elem/_nf_elem_set_coeff_num_fmpz.html (generated 2026-11-02).