Return the hyperbolic tangent of x. This function has been overriden from math.tanh to work element-wise on iterables