The
TAN function returns the tangent of *
X*
.

The angle for which the tangent is desired, specified in radians. If *
X*
is double-precision floating-point, the result is of the same type. Complex values are not allowed. All other types are converted to single-precision floating-point and yield floating-point results. If *
X*
is an array, the result has the same structure, with each element containing the tangent of the corresponding element of *
X*
.