asinh(3)

✨ asinh β€” bestie, we're going INVERSE ✨

okay so the manual name here is asinh(3) and the whole vibe is inverse hyperbolic sine πŸ’– it's a math library situation, libm, and yes you link it with -lm like always, you know the drill 🫢


🌸 NAME 🌸

asinh, asinhf, asinhl β€” the inverse hyperbolic sine function, in three delicious flavors: double, float, and long double πŸ“


πŸ“š LIBRARY πŸ“š

Math library (libm, -lm) β€” gotta bring the -lm to the party or nothing works, fr fr.


πŸŽ€ SYNOPSIS πŸŽ€

#include <math.h>

double asinh(double x);
float asinhf(float x);
long double asinhl(long double x);

✨ Feature Test Macro Requirements for glibc ✨

(this is the glibc edition, see feature_test_macros(7) for the whole tea β˜•)

asinh():

_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
    || _XOPEN_SOURCE >= 500
    || /* Since glibc 2.19: */ _DEFAULT_SOURCE
    || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

asinhf(), asinhl():

_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
    || /* Since glibc 2.19: */ _DEFAULT_SOURCE
    || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

like… pick one of those, bestie, and you're golden πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

These functions calculate the inverse hyperbolic sine of x. Which is a fancy way of saying: they hand you back the value whose hyperbolic sine is x. It's giving "un-sinh", and it ate ✨


πŸ”₯ RETURN VALUE πŸ”₯

On success, these functions return the inverse hyperbolic sine of x. periodt.

  • If x is a NaN, a NaN is returned. πŸ’€ (went in weird, came out weird)
  • If x is +0 (-0), +0 (-0) is returned. our zero keeps its sign, iconic behavior πŸ‘‘
  • If x is positive infinity (negative infinity), positive infinity (negative infinity) is returned. symmetry slay 🌈

😭 ERRORS 😭

No errors occur. Not a single one. Nothing to report. The drama-free function of the century 🧚


⭐ ATTRIBUTES ⭐

For an explanation of the terms used in this section, see attributes(7).

  • asinh(), asinhf(), asinhl() β€” Thread safety: MT-Safe 🫢 (yes, all three of them, they're all safe to share, go wild)

🌟 STANDARDS 🌟

C11, POSIX.1-2008. no cap.


πŸ¦‹ HISTORY πŸ¦‹

C99, POSIX.1-2001.

Also, the variant returning double also conforms to SVr4, 4.3BSD. it's old money, it's been around, it's a legacy queen πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

acosh(3), atanh(3), casinh(3), cosh(3), sinh(3), tanh(3) β€” the whole hyperbolic friend group, go say hi πŸŽ€


and that's the whole page bestie!! πŸ’– this was the asinh(3) manual page from Linux man-pages 6.20, dated 2026-02-08 β€” mwah, go compute something, ily 🫢✨

πŸ“¦ 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: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms