FLINT3.7.0-dev

fmpz_mpoly_primitive_part

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_primitive_part(fmpz_mpoly_t res, const fmpz_mpoly_t f, const fmpz_mpoly_ctx_t ctx)source

Sets res to ff divided by the content of its coefficients, with the sign chosen so that the leading coefficient is positive. Zero stays zero.

Cite this page

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