FLINT3.7.0-dev

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)source
int gr_ore_poly_set_ui(gr_ore_poly_t poly, ulong x, gr_ore_poly_ctx_t ctx)source
int gr_ore_poly_set_fmpz(gr_ore_poly_t poly, const fmpz_t x, gr_ore_poly_ctx_t ctx)source
int gr_ore_poly_set_fmpq(gr_ore_poly_t poly, const fmpq_t x, gr_ore_poly_ctx_t ctx)source
int gr_ore_poly_set_other(gr_ore_poly_t poly, gr_srcptr x, gr_ctx_t x_ctx, gr_ore_poly_ctx_t ctx)source

Set 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).