MathLib.coth()

MathLib.coth() calculates the hyperbolic cotangent of a number. \[ \text{MathLib.coth}(x) = \coth(x) \]

Specification

MathLib.coth accepts one argument. Any additional arguments will be ignored. The type of the argument should be number. For other argument types see the unary function specification.
  1. MathLib.coth(NaN) = NaN
  2. MathLib.coth(+0) = +∞
  3. MathLib.coth(-0) = -∞
  4. MathLib.coth(+∞) = 1
  5. MathLib.coth(-∞) = -1
  6. otherwise MathLib.coth(x) = hyperbolic cotangent of x

Tests

Categories: unary Function