next up previous contents index
Next: ATANH Up: A Function Reference Previous: ATAN

ATAN2

 

Syntax: @ATAN2(X, Y)

X = a numeric value
Y = a numeric value

@ATAN2 returns the 4-quadrant arc tangent of Y/X. At least one of the arguments must be non-zero. The result is the angle (in radians) and ranges between tex2html_wrap_inline15941 and tex2html_wrap_inline15907 . To convert the result from radians to degrees, use the @DEGREES function.

Examples:

@ATAN2(1, 1) = 0.78539816

@ATAN2(A1, A2) = -0.78539816, where A1 = 10 and A2 = -10

@ATAN2(D3, S5) = 1.5707963, where D3 = 0 and S5 = 1

@ATAN2(0, 0) = Error - @ATAN2, one argument must be non-zero

@DEGREES(@ATAN2(1, 3)) = 71.565


next up previous contents index
Next: ATANH Up: A Function Reference Previous: ATAN

NExS User's Guide, Version 1.4.5
Grey Trout Software
11 April 1999