arf_div, arf_div_ui, arf_ui_div, arf_div_si, arf_si_div, arf_div_fmpz, arf_fmpz_div, arf_fmpz_div_fmpz
#include <flint/arf.h>int arf_div(arf_ptr z, arf_srcptr x, arf_srcptr y, slong prec, arf_rnd_t rnd)sourceSet z to x / y, correctly rounded for the strict modes. Division by zero gives NaN. The relaxed modes ARF_RND_FAST and ARF_RND_ACCURATE are accepted.
The standard algorithm computes a truncated quotient with at least 32 extra bits (flint_mpn_tdiv_q) and decides exactness by multiplying back only when the low bits of the quotient are zero. Division by a power of two is a rounding of the numerator. With a relaxed mode and a large precision, Newton iteration from mp_real is used instead (see ARF_RND_FAST).
Guides#
The FLINT team, “arf_div, arf_div_ui, arf_ui_div, arf_div_si, arf_si_div, arf_div_fmpz, arf_fmpz_div, arf_fmpz_div_fmpz (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_div.html (generated 2026-10-20).
@misc{flint-doc-arf-arf-div,
author = {{The FLINT team}},
title = {{arf\_div, arf\_div\_ui, arf\_ui\_div, arf\_div\_si, arf\_si\_div, arf\_div\_fmpz, arf\_fmpz\_div, arf\_fmpz\_div\_fmpz (arf.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arf/arf_div.html},
note = {Generated 2026-10-20}
}