W3cubDocs

/GNU Fortran 14

8.24 ATAND — Arctangent function, degrees

Description:

ATAND(X) computes the arctangent of X in degrees (inverse of TAND — Tangent function, degrees).

Standard:

Fortran 2023

Class:

Elemental function

Syntax:
RESULT = ATAND(X)
Arguments:
X The type shall be REAL; if Y is present, X shall be REAL.
Y The type and kind type parameter shall be the same as X.
Return value:

The return value is of the same type and kind as X. The result is in degrees and lies in the range -90 \leq \Re \atand(x) \leq 90.

Example:
program test_atand
  real(8) :: x = 2.866_8
  x = atand(x)
end program test_atand
Specific names:
Name Argument Return type Standard
ATAND(X) REAL(4) X REAL(4) Fortran 2023
DATAND(X) REAL(8) X REAL(8) GNU extension
See also:

Inverse function: TAND — Tangent function, degrees Radians function: ATAN — Arctangent function

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gfortran/ATAND.html