math.tanh¶ math.tanh(x) -> number Return the hyperbolic tangent of x. Parameters x: any — a real number Returns number — the hyperbolic tangent of x, as a float Examples assert(math.tanh(0) == 0.0) assert(math.tanh(1e10) == 1.0)