The functions in this section are related to the exponential functions; see Exponentiation and Logarithms.
double
sinh (double x)
¶float
sinhf (float x)
¶long double
sinhl (long double x)
¶_FloatN
sinhfN (_FloatN x)
¶_FloatNx
sinhfNx (_FloatNx x)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the hyperbolic sine of x, defined
mathematically as (exp (x) - exp (-x)) / 2
. They
may signal overflow if x is too large.
double
cosh (double x)
¶float
coshf (float x)
¶long double
coshl (long double x)
¶_FloatN
coshfN (_FloatN x)
¶_FloatNx
coshfNx (_FloatNx x)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the hyperbolic cosine of x,
defined mathematically as (exp (x) + exp (-x)) / 2
.
They may signal overflow if x is too large.
double
tanh (double x)
¶float
tanhf (float x)
¶long double
tanhl (long double x)
¶_FloatN
tanhfN (_FloatN x)
¶_FloatNx
tanhfNx (_FloatNx x)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the hyperbolic tangent of x,
defined mathematically as sinh (x) / cosh (x)
.
They may signal overflow if x is too large.
There are counterparts for the hyperbolic functions which take complex arguments.
complex double
csinh (complex double z)
¶complex float
csinhf (complex float z)
¶complex long double
csinhl (complex long double z)
¶complex _FloatN
csinhfN (complex _FloatN z)
¶complex _FloatNx
csinhfNx (complex _FloatNx z)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the complex hyperbolic sine of z, defined
mathematically as (exp (z) - exp (-z)) / 2
.
complex double
ccosh (complex double z)
¶complex float
ccoshf (complex float z)
¶complex long double
ccoshl (complex long double z)
¶complex _FloatN
ccoshfN (complex _FloatN z)
¶complex _FloatNx
ccoshfNx (complex _FloatNx z)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the complex hyperbolic cosine of z, defined
mathematically as (exp (z) + exp (-z)) / 2
.
complex double
ctanh (complex double z)
¶complex float
ctanhf (complex float z)
¶complex long double
ctanhl (complex long double z)
¶complex _FloatN
ctanhfN (complex _FloatN z)
¶complex _FloatNx
ctanhfNx (complex _FloatNx z)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the complex hyperbolic tangent of z,
defined mathematically as csinh (z) / ccosh (z)
.
double
asinh (double x)
¶float
asinhf (float x)
¶long double
asinhl (long double x)
¶_FloatN
asinhfN (_FloatN x)
¶_FloatNx
asinhfNx (_FloatNx x)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the inverse hyperbolic sine of x—the value whose hyperbolic sine is x.
double
acosh (double x)
¶float
acoshf (float x)
¶long double
acoshl (long double x)
¶_FloatN
acoshfN (_FloatN x)
¶_FloatNx
acoshfNx (_FloatNx x)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the inverse hyperbolic cosine of x—the
value whose hyperbolic cosine is x. If x is less than
1
, acosh
signals a domain error.
double
atanh (double x)
¶float
atanhf (float x)
¶long double
atanhl (long double x)
¶_FloatN
atanhfN (_FloatN x)
¶_FloatNx
atanhfNx (_FloatNx x)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the inverse hyperbolic tangent of x—the
value whose hyperbolic tangent is x. If the absolute value of
x is greater than 1
, atanh
signals a domain error;
if it is equal to 1, atanh
returns infinity.
complex double
casinh (complex double z)
¶complex float
casinhf (complex float z)
¶complex long double
casinhl (complex long double z)
¶complex _FloatN
casinhfN (complex _FloatN z)
¶complex _FloatNx
casinhfNx (complex _FloatNx z)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the inverse complex hyperbolic sine of z—the value whose complex hyperbolic sine is z.
complex double
cacosh (complex double z)
¶complex float
cacoshf (complex float z)
¶complex long double
cacoshl (complex long double z)
¶complex _FloatN
cacoshfN (complex _FloatN z)
¶complex _FloatNx
cacoshfNx (complex _FloatNx z)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the inverse complex hyperbolic cosine of z—the value whose complex hyperbolic cosine is z. Unlike the real-valued functions, there are no restrictions on the value of z.
complex double
catanh (complex double z)
¶complex float
catanhf (complex float z)
¶complex long double
catanhl (complex long double z)
¶complex _FloatN
catanhfN (complex _FloatN z)
¶complex _FloatNx
catanhfNx (complex _FloatNx z)
¶Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions return the inverse complex hyperbolic tangent of z—the value whose complex hyperbolic tangent is z. Unlike the real-valued functions, there are no restrictions on the value of z.