ca_tan_sine_cosine, ca_tan_exponential, ca_tan_direct, ca_tan
#include <flint/ca.h>Sets res to \tan x, as a quotient of a sine and a cosine, in terms of complex exponentials, or directly as the generator of \mathbb{Q}(\tan x) (possibly after a transformation of the argument). ca_tan uses the form selected by CA_OPT_TRIG_FORM. Simple algebraic values simplify to elements of number fields.
For special values: \tan has the value \tilde \infty at its poles (n + \frac{1}{2}) \pi; \tan(c \infty) = i if \operatorname{Im}(c) > 0 and -i if \operatorname{Im}(c) < 0; \tan(\pm \infty), \tan(\tilde \infty) and \tan(\text{Undefined}) are Undefined; \tan(\text{Unknown}) and \cot(\text{Unknown}) are Unknown.
The FLINT team, “ca_tan_sine_cosine, ca_tan_exponential, ca_tan_direct, ca_tan (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_tan_sine_cosine.html (generated 2026-10-20).
@misc{flint-doc-ca-ca-tan-sine-cosine,
author = {{The FLINT team}},
title = {{ca\_tan\_sine\_cosine, ca\_tan\_exponential, ca\_tan\_direct, ca\_tan (ca.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca/ca_tan_sine_cosine.html},
note = {Generated 2026-10-20}
}