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)sourceReturns 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).
@misc{flint-doc-fmpz-mpoly-fmpz-mpoly-cmp,
author = {{The FLINT team}},
title = {{fmpz\_mpoly\_cmp (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_mpoly_cmp.html},
note = {Generated 2026-10-20}
}