FLINT3.7.0-dev

arf_sin, arf_cos, arf_sin_cos, arf_tan, arf_cot, arf_sec, arf_csc, arf_sinc

Synopsis#include <flint/arf.h>
int arf_sin(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_cos(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sin_cos(arf_ptr res1, arf_ptr res2, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_tan(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_cot(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sec(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_csc(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sinc(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source

The trigonometric functions, their reciprocals and sinc⁡x=sin⁡(x)/x\operatorname{sinc} x = \sin(x) / x (sinc(0) = 1). arf_sin_cos computes the sine and the cosine together (res1 and res2 must be distinct). The results at x=0x = 0 are exact; infinite arguments, and arguments beyond 2max⁡(65536,4 prec)2^{\max(65536, 4 \, \mathit{prec})} in absolute value, give NaN (as do the poles of cot and csc at zero).

Cite this page

The FLINT team, “arf_sin, arf_cos, arf_sin_cos, arf_tan, arf_cot, arf_sec, arf_csc, arf_sinc (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_sin.html (generated 2026-11-17).