tanh(3) Library Functions Manual tanh(3) tanh, tanhf, tanhl - LIBRARY Math library (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 || /* 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(), tanhf(), tanhl() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ 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) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . tanh(3)