TAN(3) - [MATHEMATICS:TRIGONOMETRIC] Tangent function
result = tan(x)
elemental TYPE(kind=KIND) function tan(x)TYPE(kind=KIND),intent(in) :: x
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.
TAN(3) computes the tangent of X.
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.
The return value is the tangent of the value X.
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_tanResults:
> 0.16500000000000001 0.16651386310913616
FORTRAN 77 . For a complex argument, Fortran 2008 .
ATAN(3), ATAN2(3), COS(3), SIN(3)
Fortran intrinsic descriptions (license: MIT) @urbanjost
Nemo Release 3.1 | tan (3fortran) | November 02, 2024 |