csinh(3)

โœจ csinh โ€” complex hyperbolic sine, but make it a vibe โœจ

okay so bestie, you're in the csinh(3) page ๐Ÿ’– this is from the Library Functions Manual, and we're about to get so cozy with the complex hyperbolic sine. i promise this is less scary than it sounds, fr fr ๐Ÿฆ‹


๐ŸŽ€ NAME ๐ŸŽ€

csinh, csinhf, csinhl โ€” the complex hyperbolic sine (yes, three of them, one for each flavor of float ๐Ÿ’…)


๐Ÿ“š LIBRARY ๐Ÿ“š

Math library โ€” link it with libm, aka -lm ๐Ÿงฎ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include <complex.h>

double complex csinh(double complex z);
float complex csinhf(float complex z);
long double complex csinhl(long double complex z);

ok so you literally just pick your precision and go ๐Ÿ‘‘ no cap, that's the whole intro.


๐Ÿ’ซ DESCRIPTION ๐Ÿ’ซ

These functions calculate the complex hyperbolic sine of z. that's it, that's the job, and they do it flawlessly ๐Ÿ’…

The complex hyperbolic sine function is defined as:

csinh(z) = (exp(z)-exp(-z))/2

like, it's giving classic definition energy โ€” exp on both ends, a little subtraction moment, divide by two, slay โœจ


๐Ÿ”ฅ ATTRIBUTES ๐Ÿ”ฅ

ngl, for the whole explanation of the terminology used in this section, you gotta go check out attributes(7) โ€” go read it, i'll wait ๐Ÿซถ

  • csinh(), csinhf(), csinhl() โ€” Thread safety: MT-Safe ๐Ÿ‘‘

so yes bestie, they are MT-Safe, meaning you can call them from multiple threads and nobody's gonna fight, periodt ๐ŸŒˆ


โญ STANDARDS โญ

C11, POSIX.1-2008 ๐Ÿ’œ


๐Ÿฆ‹ HISTORY ๐Ÿฆ‹

  • glibc 2.1 โ€” this is when it showed up in glibc, iconic behavior honestly ๐ŸŒธ
  • C99, POSIX.1-2001 โ€” and that's where it was standardized, iykyk ๐Ÿ“œ

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

go read those too, they're all in the same friend group ๐Ÿ’–


โš ๏ธ real talk: csinh(z) = (exp(z)-exp(-z))/2 is the actual definition and the actual behavior โ€” don't go inventing your own, the math is not a vibe, it's a law ๐Ÿ˜ญ

and that's the whole page, bestie!! this was Linux man-pages 6.20, dated 2026-02-08, page csinh(3) โ€” go forth and compute your complex hyperbolic sines, i'm obsessed with you ๐ŸŽ€๐Ÿ’œ๐Ÿงšโœจ

๐Ÿ“ฆ 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