Function tanh

Calculate the hyperbolic tangent of each element in an array.

> tanh([0, 1, -1])
[0, 0.7615941559557649, -0.7615941559557649]
  • Parameters

    • array: number[]

      The array of numbers.

    Returns number[]

    An array with the hyperbolic tangent of each input element.