_mp_real_atan_fp, _mp_real_atan2_fp
#include <flint/mp_real.h>void _mp_real_atan_fp(nn_ptr y, slong * w, ulong * err, nn_srcptr d, slong n, slong e, slong pb, slong wmax)sourcevoid _mp_real_atan2_fp(nn_ptr y, slong * len, slong * ue, ulong * elo, ulong * ehi, nn_srcptr num, slong nn, nn_srcptr den, slong dn, slong d, int c, int sigma, slong pb, slong wmax)source_mp_real_atan_fp sets to within err units for , with _mp_real_elem_limbs(pb - e) for (the relative accuracy of small arguments; the caller handles tiny ) and otherwise, where is evaluated as ; y needs wmax + 1 limbs. _mp_real_atan2_fp evaluates for with the mantissas and in , , and (the caller sorts and into the octants and applies the sign of ): the result is within elo units below and ehi units above. For and a tiny (when ) this is the exact floor of the ratio itself at nk + 1 limbs, with and below a unit, so that the bounds are one-sided; otherwise the arctangent at _mp_real_elem_limbs(pb + d - 1) () resp. nk limbs. y needs wmax + 2 limbs (wmax nk + 1).
The FLINT team, “_mp_real_atan_fp, _mp_real_atan2_fp (mp_real.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mp_real/_mp_real_atan_fp.html (generated 2026-11-17).
@misc{flint-doc-mp-real-mp-real-atan-fp,
author = {{The FLINT team}},
title = {{\_mp\_real\_atan\_fp, \_mp\_real\_atan2\_fp (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_atan_fp.html},
note = {Generated 2026-11-17}
}