tanh (Function)
Signature: tanh(x: t0) -> t0
Description: Returns the hyperbolic tangent in [-1, 1] for non-NaN inputs. Large magnitudes round to -1.0 or 1.0; NaN remains NaN.
Parameters
- x (
t0): The float argument
Returns: t0
Example
print(tanh(0.0)) // 0.0
print (tanh 0.0) // 0.0