FLINT3.7.0-dev

arb_sin_pi, arb_cos_pi, arb_sin_cos_pi

Synopsis#include <flint/arb.h>
void arb_sin_pi(arb_t s, const arb_t x, slong prec)source
void arb_cos_pi(arb_t c, const arb_t x, slong prec)source
void arb_sin_cos_pi(arb_t s, arb_t c, const arb_t x, slong prec)source

Set s to \sin(\pi x) and c to \cos(\pi x). These are exact at exact integers and half-integers and accurate near the zeros, which arb_sin applied to a multiple of an enclosure of \pi is not.

Guides#

Cite this page

The FLINT team, “arb_sin_pi, arb_cos_pi, arb_sin_cos_pi (arb.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arb/arb_sin_pi.html (generated 2026-10-20).