cosh

Calculates the hyperbolic cosine of x.

@IEEECompliant("cosh", 42)
D
cosh
(
D
)
(
auto const ref D x
)

Throws

InvalidOperationExceptionx is signaling NaN
OverflowExceptionresult is too big to be represented
InexactExceptionthe result is inexact

Special values

xcosh(x)
NaNNaN
±∞+∞
±0.0+1.0

Meta