[UP]


Manual Reference Pages  - atan (3)

NAME

atan(3f) - [FORTRAN:INTRINSIC:MATHEMATICS:TRIGONOMETRIC] Arctangent function

SYNTAX

o result = atan(x)
o result = atan(y, x)

DESCRIPTION

atan(x) computes the arctangent of X.

ARGUMENTS

X The type shall be REAL or COMPLEX; if Y is present, X shall be REAL.
Y Shall be of the same type and kind as X.

RETURN VALUE

The return value is of the same type and kind as X. If Y is present, the result is identical to atan2(y,x). Otherwise, it the arc tangent of X, where the real part of the result is in radians and lies in the range

-PI/2 <= atan(x) <= PI/2.

EXAMPLE

Sample program:

   program demo_atan
   use, intrinsic :: iso_fortran_env, only : real_kinds, &
   & real32, real64, real128
   implicit none
   real(kind=real64) :: x = 2.866_real64
      x = atan(x)
   end program demo_atan

STANDARD

[[FORTRAN 77]] and later; for a complex argument and for two arguments [[Fortran 2008]] or later

CLASS

[[Elemental function]]

SEE ALSO

atan2(3), tan(3)


atan (3) March 11, 2021
Generated by manServer 1.08 from 35f86043-b9b6-4f5b-ad97-b2f5369c4f4d using man macros.