TAN — Tangent function#
-
TAN(X)#
TAN(X)
computes the tangent ofX
.- Parameters
X – The type shall be
REAL
orCOMPLEX
.- Returns
The return value has same type and kind as
X
, and its value is in radians.
- Standard:
Fortran 77 and later, for a complex argument Fortran 2008 or later
- Class:
Elemental function
- Syntax:
RESULT = TAN(X)
- Example:
program test_tan real(8) :: x = 0.165_8 x = tan(x) end program test_tan
- Specific names:
Name
Argument
Return type
Standard
TAN(X)
REAL(4) X
REAL(4)
Fortran 77 and later
DTAN(X)
REAL(8) X
REAL(8)
Fortran 77 and later
- See also: