method

tanh

v2_6_3 - Show latest stable - Class: Math
tanh(p1)
public

Computes the hyperbolic tangent of x (expressed in radians).

Domain: (-INFINITY, INFINITY)

Codomain: (-1, 1)

Math.tanh(0) #=> 0.0