Calculate the hyperbolic tangent of each element in an array.
> tanh([0, 1, -1])[0, 0.7615941559557649, -0.7615941559557649] Copy
> tanh([0, 1, -1])[0, 0.7615941559557649, -0.7615941559557649]
The array of numbers.
An array with the hyperbolic tangent of each input element.
Calculate the hyperbolic tangent of each element in an array.
Example