FLINT3.7.0-dev

acf_tan, acf_cot, acf_sec, acf_csc, acf_tan_pi, acf_cot_pi, acf_sec_pi, acf_csc_pi, acf_tanh, acf_coth, acf_sech, acf_csch

Synopsis#include <flint/acf.h>
int acf_tan(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_cot(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_sec(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_csc(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_tan_pi(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_cot_pi(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_sec_pi(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_csc_pi(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_tanh(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_coth(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_sech(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source
int acf_csch(acf_t res, const acf_t x, slong prec, arf_rnd_t rnd)source

Set res to the tangent, cotangent, secant and cosecant of x (respectively of πx\pi x) and to the hyperbolic tangent, cotangent, secant and cosecant of x. Real arguments are computed by the real functions (whose results at the poles are kept, with a zero imaginary part); a nan or infinite part gives nan parts.

Cite this page

The FLINT team, “acf_tan, acf_cot, acf_sec, acf_csc, acf_tan_pi, acf_cot_pi, acf_sec_pi, acf_csc_pi, acf_tanh, acf_coth, acf_sech, acf_csch (acf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acf/acf_tan.html (generated 2026-11-17).