ca_sin_cos_exponential, ca_sin_cos_direct, ca_sin_cos_tangent, ca_sin_cos
#include <flint/ca.h>Sets res1 to and res2 to . Either output may be NULL if only the other function is wanted.
The exponential version writes and ; rational multiples of then give elements of cyclotomic fields. The direct version returns the generators of and (perhaps after symmetry transformations, which may exchange the two functions), and the tangent version expresses both in terms of as and . In the last two versions, very simple algebraic values become elements of real number fields. ca_sin_cos uses the form selected by CA_OPT_TRIG_FORM, exponential by default, which works best for simplification and zero testing although it introduces complex numbers in real computations; CA_TRIG_SINE_COSINE selects the direct form.
For special values: , , the other infinities give Undefined, and Undefined and Unknown map to themselves.
The FLINT team, “ca_sin_cos_exponential, ca_sin_cos_direct, ca_sin_cos_tangent, ca_sin_cos (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_sin_cos_exponential.html (generated 2026-11-02).
@misc{flint-doc-ca-ca-sin-cos-exponential,
author = {{The FLINT team}},
title = {{ca\_sin\_cos\_exponential, ca\_sin\_cos\_direct, ca\_sin\_cos\_tangent, ca\_sin\_cos (ca.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca/ca_sin_cos_exponential.html},
note = {Generated 2026-11-02}
}