_arb_sin_pi_fmpq_algebraic, _arb_cos_pi_fmpq_algebraic, _arb_sin_cos_pi_fmpq_algebraic
Synopsis
#include <flint/arb.h>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).
@misc{flint-doc-arb-arb-sin-pi-fmpq-algebraic,
author = {{The FLINT team}},
title = {{\_arb\_sin\_pi\_fmpq\_algebraic, \_arb\_cos\_pi\_fmpq\_algebraic, \_arb\_sin\_cos\_pi\_fmpq\_algebraic (arb.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/arb/_arb_sin_pi_fmpq_algebraic.html},
note = {Generated 2026-10-20}
}