MathLib.cosh()

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

Examples

To calculate the hyperbolic cosine of 2 type: MathLib.cosh(2);

Specification

MathLib.cosh 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.cosh(NaN) = NaN
  2. MathLib.cosh(+∞) = +∞
  3. MathLib.cosh(-∞) = +∞
  4. otherwise MathLib.cosh(x) = hyperbolic cosine of x

Tests

Categories: unary Function