FLINT3.7.0-dev

gr_poly_div_scalar, gr_poly_divexact_scalar

Synopsis#include <flint/gr_poly.h>
int gr_poly_div_scalar(gr_poly_t res, const gr_poly_t poly, gr_srcptr c, gr_ctx_t ctx)source
int gr_poly_divexact_scalar(gr_poly_t res, const gr_poly_t poly, gr_srcptr c, gr_ctx_t ctx)source

Set res to f / c, dividing each coefficient with gr_div (GR_DOMAIN if a quotient does not exist in R), respectively with gr_divexact, which assumes that every division is exact and may then be faster (for example over \mathbb{Z}).

Cite this page

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