TAND(3) - [MATHEMATICS:TRIGONOMETRIC] Degree Tangent function
result = tand(x)
elemental real(kind=KIND) function tand(x)real(kind=KIND),intent(in) :: x
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.
TAND(3) computes the degree tangent of X.
o X : The angle in degrees to compute the tangent of.
The return value is a processor-dependent approximation to the tangent of the value X where X is regarded as a value in degrees.
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_tandResult:
> 0.50000000000000000 8.7268677907587893E-003
Fortran 2023
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 |