Fortran Wiki
tan

Description

tan(x) computes the tangent of x.

Standard

FORTRAN 77 and later. For a complex argument, Fortran 2008 or later.

Class

Elemental function

Syntax

result = tan(x)

Arguments

  • x - The type shall be real or complex.

Return value

The return value has same type and kind as X.

Example

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

See also

atan, cos, sin

category: intrinsics