FLINT3.7.0-dev

_fmpz_poly_divexact_root_fmpq, fmpz_poly_divexact_root_fmpq

Synopsis#include <flint/fmpz_poly.h>
void _fmpz_poly_divexact_root_fmpq(fmpz * Q, const fmpz * A, slong len, const fmpq_t c)source
void fmpz_poly_divexact_root_fmpq(fmpz_poly_t Q, const fmpz_poly_t A, const fmpq_t c)source

Set Q to A / (qx - p) where c = p/q in lowest terms, assuming that c is a root of A; this is not checked. The underscore version writes len - 1 coefficients; Q may be equal to A but must not partially overlap it.

Cite this page

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