FLINT3.7.0-dev

fmpz_poly_q_canonicalise

Synopsis#include <flint/fmpz_poly_q.h>
void fmpz_poly_q_canonicalise(fmpz_poly_q_t rop)source

Brings rop into canonical form by dividing the numerator and the denominator by their gcd in \mathbb{Z}[x] and making the leading coefficient of the denominator positive. The denominator must be nonzero; a zero denominator causes an exception (FLINT_ERROR).

Guides#

Cite this page

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