FLINT3.7.0-dev

d1_get_arf, d2_get_arf, d3_get_arf, d4_get_arf, d1_set_arf, d2_set_arf, d3_set_arf, d4_set_arf, d1_get_arb, d2_get_arb, d3_get_arb, d4_get_arb, d1_set_arb, d2_set_arb, d3_set_arb, d4_set_arb, d1b_get_arb, d2b_get_arb, d3b_get_arb, d4b_get_arb, d1b_set_arb, d2b_set_arb, d3b_set_arb, d4b_set_arb, d1b_set_arf, d2b_set_arf, d3b_set_arf, d4b_set_arf

Synopsis#include <flint/dfloat.h>
void d1_get_arf(arf_t res, d1_srcptr x)
void d2_get_arf(arf_t res, d2_srcptr x)
void d3_get_arf(arf_t res, d3_srcptr x)
void d4_get_arf(arf_t res, d4_srcptr x)
void d1_set_arf(d1_t res, const arf_t x)
void d2_set_arf(d2_t res, const arf_t x)
void d3_set_arf(d3_t res, const arf_t x)
void d4_set_arf(d4_t res, const arf_t x)
void d1_get_arb(arb_t res, d1_srcptr x)
void d2_get_arb(arb_t res, d2_srcptr x)
void d3_get_arb(arb_t res, d3_srcptr x)
void d4_get_arb(arb_t res, d4_srcptr x)
void d1_set_arb(d1_t res, const arb_t x)
void d2_set_arb(d2_t res, const arb_t x)
void d3_set_arb(d3_t res, const arb_t x)
void d4_set_arb(d4_t res, const arb_t x)
void d1b_get_arb(arb_t res, d1b_srcptr x)
void d2b_get_arb(arb_t res, d2b_srcptr x)
void d3b_get_arb(arb_t res, d3b_srcptr x)
void d4b_get_arb(arb_t res, d4b_srcptr x)
void d1b_set_arb(d1b_t res, const arb_t x)
void d2b_set_arb(d2b_t res, const arb_t x)
void d3b_set_arb(d3b_t res, const arb_t x)
void d4b_set_arb(d4b_t res, const arb_t x)
void d1b_set_arf(d1b_t res, const arf_t x)
void d2b_set_arf(d2b_t res, const arf_t x)
void d3b_set_arf(d3b_t res, const arf_t x)
void d4b_set_arf(d4b_t res, const arf_t x)

Conversions from and to arf_t and arb_t. The get functions are exact (the radius is rounded up to a mag_t). The set functions round the midpoint to N doubles by greedy rounding and, for balls, add the remainder to the radius. A nonfinite arb_t or arf_t gives the whole real line, and dNb_get_arb gives the whole real line as [0 \pm \infty].

Cite this page

The FLINT team, “d1_get_arf, d2_get_arf, d3_get_arf, d4_get_arf, d1_set_arf, d2_set_arf, d3_set_arf, d4_set_arf, d1_get_arb, d2_get_arb, d3_get_arb, d4_get_arb, d1_set_arb, d2_set_arb, d3_set_arb, d4_set_arb, d1b_get_arb, d2b_get_arb, d3b_get_arb, d4b_get_arb, d1b_set_arb, d2b_set_arb, d3b_set_arb, d4b_set_arb, d1b_set_arf, d2b_set_arf, d3b_set_arf, d4b_set_arf (dfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dfloat/d1_get_arf.html (generated 2026-10-20).