tanh (Function)

Signature: tanh(x: float) -> float

Description: The hyperbolic tangent of a float, in (-1, 1). Total; the activation GELU is written from.

Parameters

  • x (float): The float argument

Returns: float

Example

tanh(0.0)  // 0.0
tanh 0.0  // 0.0