From C99, the headers <math.h>
, <complex.h>
and <tgmath.h>
declare 42 hyperbolic
functions for computing hyperbolic sines, cosines and
tangents, and their inverses. Mathematically, this only
amounts to six functions, but for each of those, there is one
for each of the types float
,
double
,
long double
,
float complex
, double complex
and long double complex
, along with a
type-generic macro. Before C99, only
the six double
functions are available.
Name | Description | Notes | Source | Availability | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
sinh() |
Compute hyperbolic sine | (·) | <math.h> |
C89 | C90 | C95 | C99 | C11 | |||
cosh() |
Compute hyperbolic tangent | (·) | <math.h> |
C89 | C90 | C95 | C99 | C11 | |||
tanh() |
Compute hyperbolic tangent | (·) | <math.h> |
C89 | C90 | C95 | C99 | C11 |