TAN Function
Returns the tangent of the input variable.
enabled.
Usage
result = TAN(x)
Input Parameters
x—The angle, in radians, that is evaluated.
Returned Value
result—The tangent of x.
Keywords
None.
Discussion
If x is of double-precision floating-point, TAN yields a result of the same data type. All other real data types yield a single-precision floating-point result. For complex data types, the result is of the same data type as the input.
If x is an array, the result of TAN has the same dimensions, with each element containing the tangent of the corresponding element of x.
Example
x = [-60, -30, 0, 30, 60]
PRINT, TAN(x * !Dtor)
; PV-WAVE prints: -1.73205 -0.577350 0.00000 0.577350 1.73205
See Also
For a list of other transcendental functions, see
"Transcendental Mathematical Functions" in this reference.