The ATAN2 function expression returns the arc tangent of the expression a1/a2. a1 and a2 themselves may be expressions.
-

< ATAN2(a1,a2) <

ATAN2(a1,a2) > 0 if a1 > 0
ATAN2(a1,a2) = 0 if a1 = 0, a2 > 0
ATAN2(a1,a2) =

if a1 = 0, a2 < 0
ATAN2(a1,a2) < 0 if a1 < 0
ABS(ATAN2(a1,a2))=

/2 if a2 = 0
ATAN2(a1,a2) undefined if a1 = 0, and a2 = 0
Format
ATAN2(a1,a2)
Arguments
a1 | Any valid function expression. |
a2 | Any valid function expression. |
Examples
VARIABLE/1,
, FUNCTION=ATAN2(DY(21,31,41), DX(21,31,41))
This VARIABLE statement defines an algebraically-determined, user-defined state variable in Adams Solver (FORTRAN). Its value is specified by the expression containing ATAN2.
See other
FORTRAN 77 available.