_gr_ore_poly_divrem, gr_ore_poly_divrem, gr_ore_poly_div, gr_ore_poly_rem
#include <flint/gr_ore_poly.h>int _gr_ore_poly_divrem(gr_ptr Q, gr_ptr R, gr_srcptr U, slong lenU, gr_srcptr V, slong lenV, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_divrem(gr_ore_poly_t Q, gr_ore_poly_t R, const gr_ore_poly_t U, gr_ore_poly_t V, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_div(gr_ore_poly_t Q, const gr_ore_poly_t U, gr_ore_poly_t V, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_rem(gr_ore_poly_t R, const gr_ore_poly_t U, gr_ore_poly_t V, gr_ore_poly_ctx_t ctx)sourceCompute the right Euclidean division with , which exists and is unique when the leading coefficient of and its images under the powers of are invertible (over a field with injective, for instance). Each step divides the leading coefficient of the current remainder by and subtracts , for from down to 0; the eliminated coefficients of are then set to exact zeros (in inexact rings they would otherwise only be approximately zero). The non-underscore functions return GR_DOMAIN if ; the underscore version requires and writes coefficients of and of . (In FLINT 3.6 and earlier the last step, , was skipped, so that for example divided by gave and .)
The FLINT team, “_gr_ore_poly_divrem, gr_ore_poly_divrem, gr_ore_poly_div, gr_ore_poly_rem (gr_ore_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_ore_poly/_gr_ore_poly_divrem.html (generated 2026-11-02).
@misc{flint-doc-gr-ore-poly-gr-ore-poly-divrem,
author = {{The FLINT team}},
title = {{\_gr\_ore\_poly\_divrem, gr\_ore\_poly\_divrem, gr\_ore\_poly\_div, gr\_ore\_poly\_rem (gr\_ore\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_ore_poly/_gr_ore_poly_divrem.html},
note = {Generated 2026-11-02}
}