FLINT3.7.0-dev

fmpq_poly_cmp

Synopsis#include <flint/fmpq_poly.h>
int fmpq_poly_cmp(const fmpq_poly_t left, const fmpq_poly_t right)source

Compares 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).