math.cosh() function

The math.cosh() function returns the hyperbolic cosine of x.

*Output data type: Float*

  1. import "math"
  2. math.cosh(x: 1.22)
  3. // Returns 1.8412089502726743

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.cosh0) // Returns 1
  2. math.coshInf) // Returns +Inf
  3. math.cosh(NaN) // Returns NaN