FLINT3.7.0-dev

_nmod_poly_div_root, nmod_poly_div_root

Synopsis#include <flint/nmod_poly.h>
ulong _nmod_poly_div_root(nn_ptr Q, nn_srcptr A, slong len, ulong c, nmod_t mod)source
ulong nmod_poly_div_root(nmod_poly_t Q, const nmod_poly_t A, ulong c)source

Set QQ to the quotient of AA by x−cx - c and return the remainder A(c)A(c), by Horner's rule (synthetic division). The value cc must be reduced. The underscore version requires len≥2\mathit{len} \ge 2 (for smaller lengths it returns 0 and writes nothing), writes len−1\mathit{len} - 1 coefficients and allows Q == A.

Cite this page

The FLINT team, “_nmod_poly_div_root, nmod_poly_div_root (nmod_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly/_nmod_poly_div_root.html (generated 2026-11-02).