_fmpq_poly_divrem
Synopsis
#include <flint/fmpq_poly.h>Assumes that lenA >= lenB > 0. Assumes that R has space for lenA coefficients, although only the bottom lenB - 1 will carry meaningful data on exit. Supports no aliasing between the two outputs, or between the inputs and the outputs.
An optional precomputed inverse of the leading coefficient of B from fmpz_preinvn_init can be supplied. Otherwise inv should be NULL.
Note: fmpz.h has to be included before fmpq_poly.h in order for the latter to declare this function.
Cite this page
The FLINT team, “_fmpq_poly_divrem (fmpq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_poly/_fmpq_poly_divrem.html (generated 2026-10-20).
@misc{flint-doc-fmpq-poly-fmpq-poly-divrem,
author = {{The FLINT team}},
title = {{\_fmpq\_poly\_divrem (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_divrem.html},
note = {Generated 2026-10-20}
}