Y = tan(X)
Y = tanh(X)
tan(X) is the circular tangent of each element of
tanh(X) is the hyperbolic tangent of each element of
tan(pi/2)= 1.6332e+16is not infinite, but rather a value the size of the reciprocal of the floating-point accuracy
piis only a floating-point approximation to the exact value.
(c) Copyright 1994 by The MathWorks, Inc.