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 girlie
  • cacosh(3) β€” the inverse, she un-does what this one does
  • csinh(3) β€” hyperbolic sine, the sibling
  • ctanh(3) β€” hyperbolic tangent, the other sibling
  • complex(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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms