Math.atanh

Math.atanh

Math.atanh

Function

Inverse hyperbolic tangent. Returns the inverse hyperbolic tangent of value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueNumberYesNoneThe number involved in the calculation.

Return value

TypeDescription
Int/FloatReturns the inverse hyperbolic tangent of value. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • Return NaN according to the f64 rule when exceeding [-1, 1].