tanh(3) Library Functions Manual tanh(3) tanh, tanhf, tanhl - (libm -lm) #include double tanh(double x); float tanhf(float x); long double tanhl(long double x); glibc ( feature_test_macros(7)): tanhf() tanhl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE x : tanh(x) = sinh(x) / cosh(x) x. x (NaN) NaN. x +0 (-0) +0 (-0). x ( ) +1 (-1). . attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |tanh() | | MT-Safe | |tanhf() | | | |tanhl() | | | +------------+------------------------------------+--------------------+ C11, POSIX.1-2008. C99 POSIX.1-2001. double SVr4 4.3BSD C89. acosh(3) asinh(3) atanh(3) cosh(3) ctanh(3) sinh(3) 3 . . : . 6.18 8 2026 tanh(3)