Function cosh

Calculate the hyperbolic cosine of each element in an array.

> cosh([0, 1, -1])
[1, 1.543080634815244, 1.543080634815244]
  • Parameters

    • array: number[]

      The array of numbers.

    Returns number[]

    An array with the hyperbolic cosine of each input element.