ATN2
(Function)
Obtains the arc tangent of expression 1 divided by expression 2.
ATN2 (<Expression1>, <Expression2>)
This statement obtains the arc tangent value of <Expression1> divided by <Expression2>.
The unit of the obtained value is degrees and its range is from -180 to 180.
If <Expression> includes a double precision real numeral, the obtained value becomes double precision. Otherwise, a single precision value is obtained.
The following is a value range of ATN2.
|
First quadrant
|
Second quadrant
|
Third quadrant
|
Fourth quadrant
|
---|---|---|---|---|
Lower limit value
|
0
|
90
|
-180
|
-90
|
Upper limit value
|
90
|
180
|
90
|
- 0
|
DEFSNG lf1, lf2, lf3, lf4, lf5, lf6, lf7, lf8
|
|
lf1 = ATN2(1, 2)
|
'Assigns the arc tangent value of (1, 2) to lf1.
|
lf2 = ATN2(lf4, lf5)
|
'Assigns the arc tangent value of (lf4, lf5) to lf2.
|
lf3 = ATN2(lf6, lf7) * lf8
|
'Assigns the arc tangent value of (lf6, lf7)
'multiplied by lf8 to lf3.
|