y=lab.tanh(x) returns the hyperbolic tangent of the elements of x.