Compute the hyperbolic tangent of an number
y = tanh (x)
The tanh function computes the hyperbolic tangent of a number and returns the result as an array. If its argument is an array, the tanh function will be applied to each element and the result returned as an array.