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 \theta^i in the numerator of a to b, keeping the denominator, and canonicalises. Allows i up to 2(d - 1), so that the result may be unreduced; throws for larger i.

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-10-20).