TAN(X)

Purpose

Tangent function.

Class

Elemental function

Argument type and attributes

X
An INTENT(IN) REAL Fortran 2008 beginsor type complex.Fortran 2008 ends

Result type and attributes

Same as X.

Result value

The result value approximates tan(X).

Examples

TAN(1.0) has the value 1.5574077, approximately.

Fortran 2008 beginsTAN((1.000000, 0.000000)) has the value (1.557408, 0.000000), approximately.Fortran 2008 ends

Specific Name Argument Type Result Type Pass As Arg?
TAN default real default real yes
DTAN double precision real double precision real yes
QTAN REAL(16) REAL(16) yes  1 
Note:
  •  1  IBM extension: the ability to pass the name as an argument.