fmpq_poly_canonicalise
Synopsis
#include <flint/fmpq_poly.h>void fmpq_poly_canonicalise(fmpq_poly_t poly)sourcePuts 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).
@misc{flint-doc-fmpq-poly-fmpq-poly-canonicalise,
author = {{The FLINT team}},
title = {{fmpq\_poly\_canonicalise (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_canonicalise.html},
note = {Generated 2026-10-20}
}