FLINT3.7.0-dev

fmpz_mpoly_cmp

Synopsis#include <flint/fmpz_mpoly.h>
int fmpz_mpoly_cmp(const fmpz_mpoly_t A, const fmpz_mpoly_t B, const fmpz_mpoly_ctx_t ctx)source

Returns 1, 0 or -1 according to an arbitrary but fixed total order on polynomials: first by length, then by the monomials of the terms in order, then by the coefficients. For two monomials with the same coefficient this agrees with the monomial ordering.

Cite this page

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