gr_ore_poly_set_si, gr_ore_poly_set_ui, gr_ore_poly_set_fmpz, gr_ore_poly_set_fmpq, gr_ore_poly_set_other
Synopsis
#include <flint/gr_ore_poly.h>int gr_ore_poly_set_si(gr_ore_poly_t poly, slong x, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_set_ui(gr_ore_poly_t poly, ulong x, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_set_fmpz(gr_ore_poly_t poly, const fmpz_t x, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_set_fmpq(gr_ore_poly_t poly, const fmpq_t x, gr_ore_poly_ctx_t ctx)sourceint gr_ore_poly_set_other(gr_ore_poly_t poly, gr_srcptr x, gr_ctx_t x_ctx, gr_ore_poly_ctx_t ctx)sourceSet poly to a constant converted into the base ring. The function gr_ore_poly_set_other accepts an Ore polynomial with the same context (copied), an element of the base ring, an element of the coefficient ring of the base ring when the base ring is a univariate polynomial ring, or an integer or rational number (fmpz and fmpq contexts), each giving a constant; it returns GR_UNABLE for any other ring.
Cite this page
The FLINT team, “gr_ore_poly_set_si, gr_ore_poly_set_ui, gr_ore_poly_set_fmpz, gr_ore_poly_set_fmpq, gr_ore_poly_set_other (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_set_si.html (generated 2026-10-20).
@misc{flint-doc-gr-ore-poly-gr-ore-poly-set-si,
author = {{The FLINT team}},
title = {{gr\_ore\_poly\_set\_si, gr\_ore\_poly\_set\_ui, gr\_ore\_poly\_set\_fmpz, gr\_ore\_poly\_set\_fmpq, gr\_ore\_poly\_set\_other (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_set_si.html},
note = {Generated 2026-10-20}
}