Manual Reference Pages  - tand (3fortran)

NAME

TAND(3) - [MATHEMATICS:TRIGONOMETRIC] Degree Tangent function

SYNOPSIS

result = tand(x)

     elemental real(kind=KIND) function tand(x)

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

CHARACTERISTICS

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

DESCRIPTION

TAND(3) computes the degree tangent of X.

OPTIONS

o X : The angle in degrees to compute the tangent of.

RESULT

The return value is a processor-dependent approximation to the tangent of the value X where X is regarded as a value in degrees.

EXAMPLES

tand(180.0) has the value 0.0 (approximately).

Sample program:

    program demo_tand
    use, intrinsic :: iso_fortran_env, only : real32, real64, real128
    implicit none
    real(kind=real64) :: x = 0.5_real64
         write(*,*)x, tand(x)
    end program demo_tand

Result:

      > 0.50000000000000000        8.7268677907587893E-003

STANDARD

Fortran 2023

SEE ALSO

ATAND(3), ATAN(3), ATAN2D(3), ATAN2(3), COSD(3), SIND(3)

Fortran intrinsic descriptions (license: MIT) @urbanjost


Nemo Release 3.1 tand (3fortran) November 02, 2024
Generated by manServer 1.08 from d04cfcfa-01cc-4584-9b89-b747059d3094 using man macros.