hyperbolic tangent function

You're viewing an older version of this page (#3298). View the current version.

View versions (4)

NAME

<span class="Nm" id="tanh">tanh</span>

INTERFACE

#include <math.h>

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

DESCRIPTION

The tanh function computes the hyperbolic tangent of &#92;c x.

SPECIAL VALUES

tanh ( <span class="Fn">±0</span> ) returns ±0. &#92;n &#92;n tanh ( <span class="Fn">±infinity</span> ) returns ±1.

SEE ALSO

acos (3) , asin (3) , atan (3) , atan2 (3) , cos (3) , cosh (3) , sin (3) , sinh (3) , tan (3) , reference:math (3)

STANDARDS

The tanh function conforms to ISO/IEC 9899:1999(E).