##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::tanh

From cppreference.com
< cpp‎ | numeric‎ | math

Defined in header `<cmath>` |  |
float tanh( float arg ); |  |
double tanh( double arg ); |  |
long double tanh( long double arg ); |  |
double tanh( Integral arg ); |  | (since C++11)

Computes hyperbolic tangent of `arg`

### [edit] Parameters

arg | - | value of a floating-point or Integral type

### [edit] Return value

Hyperbolic tangent of `arg`.

### [edit] See also

sinh | computes hyperbolic sine (sh(x)) (function) [edit]
cosh | computes hyperbolic cosine (ch(x)) (function) [edit]
atanh (C++11) | area hyperbolic tangent (function) [edit]
tanh(std::complex) | computes hyperbolic tangent of a complex number (function template) [edit]
tanh(std::valarray) | applies the function std::tanh to each element of valarray (function template) [edit]
C documentation for tanh

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/tanh&oldid=67142"