ccosh(3)
π ccosh β the complex hyperbolic cosine, bestie π
okay so this is the man page for ccosh(3), and honestly? she's giving math girlie main character energy and I need you to know about her. β¨
π NAME π
ccosh, ccoshf, ccoshl β complex hyperbolic cosine. three little besties, one job. π
π LIBRARY π
Math library, aka libm, and you get to her with -lm when you link. yes you have to actually link her, she's not gonna just show up. π«Ά
β¨ SYNOPSIS β¨
#include <complex.h>
double complex ccosh(double complex z);
float complex ccoshf(float complex z);
long double complex ccoshl(long double complex z);
look at them. three sisters. double, float, long double. choose your own adventure,z is a complex number every single time. no cap. πΈ
π¦ DESCRIPTION π¦
okay so what these functions do is they calculate the complex hyperbolic cosine of z. that's it. that's the whole job. and they ate, lowkey. π₯
the complex hyperbolic cosine function is defined as:
ccosh(z) = (exp(z)+exp(-z))/2
so like, you take z, you take negative z, you exp both of them, you add them up, you divide by two. symmetric. balanced. iconic. periodt. π
π STANDARDS π
C11, POSIX.1-2008. she's certified bestie, she follows the rules. β
π HISTORY π
glibc 2.1 β that's when she first showed up. and then C99, POSIX.1-2001. so she's been around a minute and she's still thriving. not me being obsessed with a legacy function π
π₯ SEE ALSO π₯
cabs(3)β absolute value, the magnitude girliecacosh(3)β the inverse, she un-does what this one doescsinh(3)β hyperbolic sine, the siblingctanh(3)β hyperbolic tangent, the other siblingcomplex(7)β the whole complex number situation, go read it fr fr
π reminder bestie: none of these functions are gonna magically appear in your binary. link with -lm or you're gonna have a bad time. π
okay that's the whole page!! this came from Linux man-pages 6.20, dated 2026-02-08, and it's the ccosh(3) page π slay safe out there, go compute some hyperbolic cosines, love u bye πβ¨π¦
π¦ 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