Next: , Previous: , Up: Intrinsic Procedures   [Contents][Index]


9.266 TAND — Tangent function, degrees

Description:

TAND(X) computes the tangent of X in degrees.

This function is for compatibility only and should be avoided in favor of standard constructs wherever possible.

Standard:

GNU Extension, enabled with -fdec-math.

Class:

Elemental function

Syntax:

RESULT = TAND(X)

Arguments:
XThe type shall be REAL or COMPLEX.
Return value:

The return value has same type and kind as X, and its value is in degrees.

Example:
program test_tand
  real(8) :: x = 0.165_8
  x = tand(x)
end program test_tand
Specific names:
NameArgumentReturn typeStandard
TAND(X)REAL(4) XREAL(4)GNU Extension
DTAND(X)REAL(8) XREAL(8)GNU Extension
See also:

Inverse function: ATAND Radians function: TAN