Fortran Wiki
tan

Description

tan(x) computes the tangent of x.

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

result = tan(x)

Arguments

  • x - The type shall be real.

Return value

The return value is of type real. The kind type parameter is the same as x.

Example

program test_tan
  real(8) :: x = 0.165_8
  x = tan(x)
end program test_tan

See also

atan

category: intrinsics