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<num_vars<n0 < \mathit{num\_vars} < n, view A≠0A \ne 0 as a polynomial in x0,…,xnum_vars−1x_0, \ldots, x_{\mathit{num\_vars}-1} with coefficients in the other variables, and set cc to its leading coefficient, respectively gg to the GCD of its coefficients (returning 0 if a GCD failed). The outputs must not alias AA and have the packing width of AA.

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-11-02).