fmpq_poly_cmp
Synopsis
#include <flint/fmpq_poly.h>int fmpq_poly_cmp(const fmpq_poly_t left, const fmpq_poly_t right)sourceCompares the two polynomials left and right.
Returns -1, 0, or 1 as left is less than, equal to, or greater than right. The comparison is first done by the degree, and then, in case of a tie, by the individual coefficients from highest to lowest.
Cite this page
The FLINT team, “fmpq_poly_cmp (fmpq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_poly/fmpq_poly_cmp.html (generated 2026-10-20).
@misc{flint-doc-fmpq-poly-fmpq-poly-cmp,
author = {{The FLINT team}},
title = {{fmpq\_poly\_cmp (fmpq\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq_poly/fmpq_poly_cmp.html},
note = {Generated 2026-10-20}
}