FLINT3.7.0-dev

nmod_mpolyl_lead_coeff, nmod_mpolyl_content

Synopsis#include <flint/nmod_mpoly.h>
void nmod_mpolyl_lead_coeff(nmod_mpoly_t c, const nmod_mpoly_t A, slong num_vars, const nmod_mpoly_ctx_t ctx)source
int nmod_mpolyl_content(nmod_mpoly_t g, const nmod_mpoly_t A, slong num_vars, const nmod_mpoly_ctx_t ctx)source

For A in a lexicographic context, viewed as a polynomial in the first num_vars variables: set c to its leading coefficient, and g to the GCD of its coefficients (returning 1 for success).

Cite this page

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