FLINT3.7.0-dev

arf_atan, arf_atan2, arf_asin, arf_acos, arf_acot, arf_asec, arf_acsc, arf_atan_pi, arf_asin_pi, arf_acos_pi

Synopsis#include <flint/arf.h>
int arf_atan(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_atan2(arf_ptr res, arf_srcptr y, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_asin(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_acos(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_acot(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_asec(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_acsc(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_atan_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_asin_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_acos_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source

The inverse trigonometric functions, their reciprocal versions (acot⁡x=atan⁡(1/x)\operatorname{acot} x = \operatorname{atan}(1/x) with acot⁡(0)=π/2\operatorname{acot}(0) = \pi/2, asec⁡x=acos⁡(1/x)\operatorname{asec} x = \operatorname{acos}(1/x), acsc⁡x=asin⁡(1/x)\operatorname{acsc} x = \operatorname{asin}(1/x), NaN outside their domains), and the first three divided by π\pi. arf_atan2 follows the usual conventions, with atan2⁡(0,x)=0\operatorname{atan2}(0, x) = 0 for x≥0x \ge 0 (including +∞+\infty) and π\pi for x<0x < 0, atan2⁡(y,0)=±π/2\operatorname{atan2}(y, 0) = \pm \pi/2, and the infinities as in C99. The exact cases are the zeros and the dyadic multiples of π\pi of the functions divided by π\pi (e.g. atan_pi⁡(±1)=±1/4\operatorname{atan\_pi}(\pm 1) = \pm 1/4).

Cite this page

The FLINT team, “arf_atan, arf_atan2, arf_asin, arf_acos, arf_acot, arf_asec, arf_acsc, arf_atan_pi, arf_asin_pi, arf_acos_pi (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_atan.html (generated 2026-11-17).