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)sourceint fmpz_mpolyl_content(fmpz_mpoly_t g, const fmpz_mpoly_t A, slong num_vars, const fmpz_mpoly_ctx_t ctx)sourceFor 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).
@misc{flint-doc-fmpz-mpoly-fmpz-mpolyl-lead-coeff,
author = {{The FLINT team}},
title = {{fmpz\_mpolyl\_lead\_coeff, fmpz\_mpolyl\_content (fmpz\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mpoly/fmpz_mpolyl_lead_coeff.html},
note = {Generated 2026-10-20}
}