MathLib.arsech()

MathLib.arsech() calculates the inverse hyperbolic secant of a number. \[ \text{MathLib.arsech}(x) = \operatorname{arsech}(x) \]

Specification

MathLib.arsech 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.arsech(NaN) = NaN
  2. MathLib.arsech(+0) = +Infinity
  3. MathLib.arsech(-0) = NaN
  4. MathLib.arsech(+∞) = NaN
  5. MathLib.arsech(-∞) = NaN
  6. MathLib.arsech(1) = +0
  7. MathLib.arsech(x) = NaN if x < 0 or x > 1
  8. otherwise MathLib.arsech(x) = inverse hyperbolic secant of x

Tests

Categories: unary Function