FLINT3.7.0-dev

fmpz_mpolyl_lead_coeff, fmpz_mpolyl_content

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpolyl_lead_coeff(fmpz_mpoly_t c, const fmpz_mpoly_t A, slong num_vars, const fmpz_mpoly_ctx_t ctx)source
int fmpz_mpolyl_content(fmpz_mpoly_t g, const fmpz_mpoly_t A, slong num_vars, const fmpz_mpoly_ctx_t ctx)source

For a lex context and 0 < \mathit{num\_vars} < n, view A \ne 0 as a polynomial in x_0, \ldots, x_{\mathit{num\_vars}-1} with coefficients in the other variables, and set c to its leading coefficient, respectively g to the GCD of its coefficients (returning 0 if a GCD failed). The outputs must not alias A and have the packing width of A.

Cite this page

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