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
- 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