FLINT3.7.0-dev

gr_get_interval_mid_rad

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

Sets m and r to the midpoint and radius of x as exact elements of the ring, so that gr_set_interval_mid_rad with m and r reproduces x; radii of vector spaces are split as in the setter. The default, used by exact rings, sets m = x and r = 0.

Guides#

Cite this page

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