FLINT3.7.0-dev

gr_set_interval_mid_rad

Synopsis#include <flint/gr.h>
int gr_set_interval_mid_rad(gr_ptr res, gr_srcptr m, gr_srcptr r, gr_ctx_t ctx)source

In ball representations of real numbers, sets res to the ball m \pm r.

In vector spaces over the real numbers represented with balls, the radii are applied to the components separately: in the complex numbers, a + bi \pm (0.1 + 0.2i) means (a \pm 0.1) + (b \pm 0.2) i, and in a polynomial ring each coefficient gets its own radius. gr_set_str parses m +/- r with this function. Exact rings return GR_UNABLE.

Cite this page

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