FLINT3.7.0-dev

nmod_mpoly_get_coeff_ui_monomial, nmod_mpoly_set_coeff_ui_monomial

Synopsis#include <flint/nmod_mpoly.h>
ulong nmod_mpoly_get_coeff_ui_monomial(const nmod_mpoly_t A, const nmod_mpoly_t M, const nmod_mpoly_ctx_t ctx)source
void nmod_mpoly_set_coeff_ui_monomial(nmod_mpoly_t A, ulong c, const nmod_mpoly_t M, const nmod_mpoly_ctx_t ctx)source

Get or set the coefficient of A at the monomial M, which must be a monomial with any nonzero coefficient (otherwise the function throws). Setting a coefficient to zero removes the term.

Cite this page

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