ctan(3)
π ctan(3) β bestie edition π
okay so real talk: this is the Linux man-pages 6.20 page for ctan, ctanf, and ctanl, and it is exactly what it says on the tin β the complex tangent function. gen z approved. math girlies rise π«Ά
β¨ NAME β¨
ctan, ctanf, ctanl β the complex tangent function πΈ
π LIBRARY π
Math library β link it with libm, aka -lm. no -lm, no vibes. periodt π
π SYNOPSIS π
#include <complex.h>
double complex ctan(double complex z);
float complex ctanf(float complex z);
long double complex ctanl(long double complex z);
three flavors, one vibe: double, float, long double. pick your precision, bestie π
π¦ DESCRIPTION π¦
okay so these functions literally calculate the complex tangent of z. that's it. that's the whole job. main character energy fr fr.
and the complex tangent function is defined as:
ctan(z) = csin(z) / ccos(z)
like, it's giving "tangent = sine over cosine" but make it β¨complexβ¨. iykyk π
π₯ ATTRIBUTES π₯
for an explanation of the terms used in this section, go peek at attributes(7).
ctan(),ctanf(),ctanl()β Thread safety: MT-Safe β
so yes bestie, you can call these from multiple threads and it will not be messy. slay.
β STANDARDS β
C11POSIX.1-2008
it's official official. π
π HISTORY π
glibc 2.1β that's when glibc got in on itC99,POSIX.1-2001β and that's when the standards did
a little throwback moment. iconic π
π SEE ALSO π
go read those next, no cap π
and that's the whole page, bestie!! this was Linux man-pages 6.20, dated 2026-02-08, filed under ctan(3). go compute some tangents and be wonderful πβ¨π¦πΈ
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-1.0-or-later
- Copyright 2002, Walter Harms <walter.harms@informatik.uni-oldenburg.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms