FLINT3.7.0-dev

_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)source
void _mp_real_small_atan_ratio_3(ulong * r2, ulong * r1, ulong * r0, ulong y2, ulong y1, ulong y0, ulong x2, ulong x1, ulong x0)source

For 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).