tanh

Returns tangent of x.

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

Throws

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

Special values

xtanh(x)
NaNNaN
±∞±1.0
±0.0±0.0

Meta