[UP]


Manual Reference Pages  - tan (3)

NAME

tan(3f) - [FORTRAN:INTRINSIC:MATHEMATICS:TRIGONOMETRIC] Tangent function

SYNTAX

result = tan(x)

DESCRIPTION

tan(x) computes the tangent of X.

ARGUMENTS

X The type shall be REAL or COMPLEX.

RETURN VALUE

The return value has the same type and kind as X.

EXAMPLE

Sample program:

   program demo_tan
   use, intrinsic :: iso_fortran_env, only : real_kinds, &
   & real32, real64, real128
   implicit none
   real(kind=real64) :: x = 0.165_real64
     x = tan(x)
   end program demo_tan

STANDARD

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

CLASS

[[Elemental function]]

SEE ALSO

atan(3), cos(3), sin(3)


tan (3) March 11, 2021
Generated by manServer 1.08 from cd7304fc-d87a-4a75-87ef-34544d06f30c using man macros.