FLINT3.7.0-dev

_arb_sin_pi_fmpq_algebraic, _arb_cos_pi_fmpq_algebraic, _arb_sin_cos_pi_fmpq_algebraic

Synopsis#include <flint/arb.h>
void _arb_sin_pi_fmpq_algebraic(arb_t s, ulong p, ulong q, slong prec)source
void _arb_cos_pi_fmpq_algebraic(arb_t c, ulong p, ulong q, slong prec)source
void _arb_sin_cos_pi_fmpq_algebraic(arb_t s, arb_t c, ulong p, ulong q, slong prec)source

Compute \sin(\pi p/q) and \cos(\pi p/q) as algebraic numbers: an isolated root of the minimal polynomial of the cosine (fmpz_poly_cos_minpoly) is refined by Newton iteration. This is used for small denominators, where it is faster than evaluating the functions.

Cite this page

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