FLINT3.7.0-dev

_fq_poly_divrem

Synopsis#include <flint/fq_poly.h>
void _fq_poly_divrem(fq_struct * Q, fq_struct * R, const fq_struct * A, slong lenA, const fq_struct * B, slong lenB, const fq_t invB, const fq_ctx_t ctx)

Computes (Q, lenA - lenB + 1) and (R, lenB - 1) with A = BQ + R and \deg R < \deg B, given the inverse invB of the leading coefficient of B. Requires lenA \ge lenB > 0. Allows aliasing of R and A but no other aliasing.

Cite this page

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