Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4
Armite F4 ArmiteH7 Picomite CMM2
Syntax:
ATAN2( y, x )
Description:
Returns the arc tangent of the two numbers x and y as an angle expressed in
radians.
It is similar to calculating the arc tangent of y / x, except that the signs of
both arguments are used to determine the quadrant of the result.
t = ATAN2(2,3)
PRINT t
PRINT DEG(t)
t = ATAN2(2,-3)
PRINT t
PRINT DEG(t)
output:
0.5880026035
33.69006753
2.55359005
146.3099325
Note: Microsoft Excel has the x and y arguments reversed.
Last edited: 29 September, 2020