FLINT3.7.0-dev

fmpq_poly_canonicalise

Synopsis#include <flint/fmpq_poly.h>
void fmpq_poly_canonicalise(fmpq_poly_t poly)source

Puts the polynomial poly into canonical form. Firstly, the length is set to the actual length of the numerator polynomial. For non-zero polynomials, it is then ensured that the numerator and denominator are coprime and that the denominator is positive. The canonical form of the zero polynomial is a zero numerator polynomial and a one denominator.

Guides#

Cite this page

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