FLINT3.7.0-dev

arf_sin_pi, arf_cos_pi, arf_sin_cos_pi, arf_tan_pi, arf_cot_pi, arf_sec_pi, arf_csc_pi, arf_sinc_pi

Synopsis#include <flint/arf.h>
int arf_sin_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_cos_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sin_cos_pi(arf_ptr res1, arf_ptr res2, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_tan_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_cot_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sec_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_csc_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_sinc_pi(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source

The trigonometric functions of πx\pi x and sinc⁡(πx)=sin⁡(πx)/(πx)\operatorname{sinc}(\pi x) = \sin(\pi x) / (\pi x). The values at the multiples of 1/21/2 (zeros, ±1\pm 1, poles: NaN) and of tan_pi, cot_pi at the odd multiples of 1/41/4 (±1\pm 1) are exact. The argument is reduced exactly, so there is no magnitude limit (tiny arguments are handled, for any exponent).

Cite this page

The FLINT team, “arf_sin_pi, arf_cos_pi, arf_sin_cos_pi, arf_tan_pi, arf_cot_pi, arf_sec_pi, arf_csc_pi, arf_sinc_pi (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_sin_pi.html (generated 2026-11-17).