Manual Reference Pages  - tan (3fortran)

NAME

TAN(3) - [MATHEMATICS:TRIGONOMETRIC] Tangent function

SYNOPSIS

result = tan(x)

     elemental TYPE(kind=KIND) function tan(x)

TYPE(kind=KIND),intent(in) :: x

CHARACTERISTICS

o the TYPE of X may be real or complex of any supported kind
o The returned value will be of the same type and kind as the argument X.

DESCRIPTION

TAN(3) computes the tangent of X.

OPTIONS

o X : The angle in radians to compute the tangent of for real input. If X is of type complex, its real part is regarded as a value in radians.

RESULT

The return value is the tangent of the value X.

EXAMPLES

Sample program:

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

Results:

      >  0.16500000000000001       0.16651386310913616

STANDARD

FORTRAN 77 . For a complex argument, Fortran 2008 .

SEE ALSO

ATAN(3), ATAN2(3), COS(3), SIN(3)

Fortran intrinsic descriptions (license: MIT) @urbanjost


Nemo Release 3.1 tan (3fortran) November 02, 2024
Generated by manServer 1.08 from f77b4cbe-2ae9-4f06-ba7e-bde4fcab3333 using man macros.