atan2d(3f) - [M_units:TRIGONOMETRY] calculate arctangent of the complex number X + i Y (LICENSE:PD)
Synopsis
Description
Options
Example
Author
License
elemental real function atan2d(x,y)
class(*),intent(in) :: x class(*),intent(in) :: y
Calculate arctangent of arctangent of the complex number
X + i Y.in degrees. It calls atan2(3f) and converts the output from radians to degrees.
X any standard scalar value supported by anyscalar_to_double(3f) Y any standard scalar value supported by anyscalar_to_double(3f)
Sample program:
program demo_atan2d use M_units, only : atan2d real(4) :: x = 1.e0_4, y = 0.5e0_4 write(*,*)atan2d(y,x) end program demo_atan2dResults:
26.5650501
John S. Urban
Public Domain
Nemo Release 3.1 | atan2d (3) | February 23, 2025 |