tanh(3)


NAME

   tanh, tanhf, tanhl - hyperbolic tangent function

SYNOPSIS

   #include <math.h>

   double tanh(double x);
   float tanhf(float x);
   long double tanhl(long double x);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   tanhf(), tanhl():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
           || /* Since glibc 2.19: */ _DEFAULT_SOURCE
           || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

DESCRIPTION

   These  functions  return  the hyperbolic tangent of x, which is defined
   mathematically as:

       tanh(x) = sinh(x) / cosh(x)

RETURN VALUE

   On success, these functions return the hyperbolic tangent of x.

   If x is a NaN, a NaN is returned.

   If x is +0 (-0), +0 (-0) is returned.

   If x is positive infinity (negative infinity), +1 (-1) is returned.

ERRORS

   No errors occur.

ATTRIBUTES

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

   
   Interface                 Attribute      Value   
   
   tanh(), tanhf(), tanhl()  Thread safety  MT-Safe 
   

CONFORMING TO

   C99, POSIX.1-2001, POSIX.1-2008.

   The variant returning double also conforms to SVr4, 4.3BSD, C89.

SEE ALSO

   acosh(3), asinh(3), atanh(3), cosh(3), ctanh(3), sinh(3)

COLOPHON

   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at
   https://www.kernel.org/doc/man-pages/.

                              2016-03-15                           TANH(3)


More Linux Commands

manpages/yuvmedianfilter.1.html
yuvmedianfilter(1) - A filter for yuv images produced by the
yuvmedianfilter is designed to enhance/filter images. It takes the input from STDIN and writes output to STDOUT. This filter looks around the current point for

manpages/latin8.7.html
latin8(7) - ISO 8859-14 character set encoded in octal, deci
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-14 encodes the characters used in Celti

manpages/XvShmPutImage.3.html
XvShmPutImage(3) - display an XvImage - Linux manual page...
XvPutImage(3) is similar to XPutImage(3). XvShmPutImage(3) is similar to XShmPutImage(3). The library will allocate the XvImage structure and fill out all field

manpages/csqrtf.3.html
csqrtf(3) - complex square root (Library - Linux man page)
Calculate the square root of a given complex number, with nonnegative real part, and with a branch cut along the negative real axis. (That means that csqrt(-1+e

manpages/Tcl_UniCharIsLower.3.html
Tcl_UniCharIsLower(3) - routines for classification of Tcl_U
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong to the character cla

manpages/iso_8859_2.7.html
iso_8859_2(7) - ISO 8859-2 character set encoded in octal, d
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-2, the Latin Alphabet No. 2 is used to

manpages/extlinux.1.html
extlinux(1) install the SYSLINUX bootloader on a ext2 ext3 f
EXTLINUX is a new syslinux derivative, which boots from a Linux ext2/ext3 filesystem. It works the same way as SYSLINUX, with a few slight modifications. It is

manpages/revpath.1.html
revpath(1) - generate a relative path that can be used to un
The revpath program prints out a relative path that is the reverse or inverse of path. Start with two directories top and bottom, with the latter below the form

manpages/racoon.conf.5.html
racoon.conf(5) - configuration file for racoon (Man Page)...
racoon.conf is the configuration file for the racoon(8) ISAKMP daemon. racoon(8) negotiates security associations for itself (ISAKMP SA, or phase 1 SA) and for

manpages/curs_set.3ncurses.html
curs_set(3ncurses) - low-level curses routines (Man Page)...
The following routines give low-level access to various curses capabilities. These routines typically are used inside library routines. The def_prog_mode and de

manpages/CPU_AND.3.html
CPU_AND(3) - macros for manipulating CPU sets (Man Page)....
The cpu_set_t data structure represents a set of CPUs. CPU sets are used by sched_setaffinity(2) and similar interfaces. The cpu_set_t data type is implemented

manpages/msguniq.1.html
msguniq(1) - unify duplicate translations in message catalog
Unifies duplicate translations in a translation catalog. Finds duplicate translations of the same message ID. Such duplicates are invalid input for other progra





We can't live, work or learn in freedom unless the software we use is free.