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 ⭐

  • C11
  • POSIX.1-2008

it's official official. πŸ’…

🌈 HISTORY 🌈

  • glibc 2.1 β€” that's when glibc got in on it
  • C99, 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms