Visible to Intel only — GUID: GUID-C52D522F-1754-447F-8285-429DE9579D3D
Visible to Intel only — GUID: GUID-C52D522F-1754-447F-8285-429DE9579D3D
TAN
Elemental Intrinsic Function (Generic): Produces the tangent of an argument in radians.
result = TAN (x)
x |
(Input) Must be of type real or complex. If x is of type real, it must be in radians and is treated as modulo. |
Results
The result type and kind are the same as x.
If x is of type real, the result is a value in radians.
If x is of type complex, the real part of the result is a value in radians.
Specific Name |
Argument Type |
Result Type |
---|---|---|
TAN |
REAL(4) |
REAL(4) |
DTAN |
REAL(8) |
REAL(8) |
QTAN |
REAL(16) |
REAL(16) |
CTAN 1 |
COMPLEX(4) |
COMPLEX(4) |
CDTAN 2 |
COMPLEX(8) |
COMPLEX(8) |
CQTAN |
COMPLEX(16) |
COMPLEX(16) |
1 The setting of compiler options specifying real size can affect CTAN. 2 This function can also be specified as ZTAN. |
Example
TAN (2.0) has the value -2.185040.
TAN (0.8) has the value 1.029639.