Next: TANH, Previous: SYSTEM_CLOCK, Up: Intrinsic Procedures [Contents][Index]
TAN
— Tangent functionTAN(X)
computes the tangent of X.
Fortran 77 and later, for a complex argument Fortran 2008 or later
Elemental function
RESULT = TAN(X)
X | The type shall be REAL or COMPLEX . |
The return value has same type and kind as X.
program test_tan real(8) :: x = 0.165_8 x = tan(x) end program test_tan
Name | Argument | Return type | Standard |
TAN(X) | REAL(4) X | REAL(4) | Fortran 95 and later |
DTAN(X) | REAL(8) X | REAL(8) | Fortran 95 and later |