Calculates the hyperbolic tangent of x.
import std.math.operations : isClose; import std.math.traits : isIdentical; assert(isIdentical(tanh(0.0), 0.0)); assert(tanh(1.0).isClose(sinh(1.0) / cosh(1.0)));
See Implementation
Calculates the hyperbolic tangent of x.