_mp_real_small_atan_ratio_2, _mp_real_small_atan_ratio_3
Synopsis
#include <flint/mp_real.h>void _mp_real_small_atan_ratio_2(ulong * r1, ulong * r0, ulong y1, ulong y0, ulong x1, ulong x0)sourcevoid _mp_real_small_atan_ratio_3(ulong * r2, ulong * r1, ulong * r0, ulong y2, ulong y1, ulong y0, ulong x2, ulong x1, ulong x0)sourceFor fractions X \ge 1/2 and Y \le X at two resp. three limbs (most significant limb first), set the result to \operatorname{atan}(Y/X) at the same number of fraction limbs, with one division instead of a division followed by the arctangent kernel. 64-bit only.
Cite this page
The FLINT team, “_mp_real_small_atan_ratio_2, _mp_real_small_atan_ratio_3 (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_small_atan_ratio_2.html (generated 2026-10-20).
@misc{flint-doc-mp-real-mp-real-small-atan-ratio-2,
author = {{The FLINT team}},
title = {{\_mp\_real\_small\_atan\_ratio\_2, \_mp\_real\_small\_atan\_ratio\_3 (mp\_real.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mp_real/_mp_real_small_atan_ratio_2.html},
note = {Generated 2026-10-20}
}