Returns the inverse tangent (the
a
rctangent) for specified x- and y-coordinates as an angle in radians between -pi and pi, excluding -pi. This equals the angle between the x-axis and a line from the origin (0,0) to the given point (x_coord, y_coord).
Syntax
ATAN2(x_coord; y_coord)
x_coord: The value of the x coordinate of the point. Eg., -2
Examples
|
Formula
|
Result
|
|
=ATAN2(1;1)
|
0.785398163
|
|
=ATAN2(-2;3)
|
2.15879893
|
|
=ATAN2(3;-1)
|
-0.321750554
|
Remarks
To return the angle in degrees, use the DEGREES function or multiply it by 180/PI().
Possible Errors
|
Errors
|
Meaning
|
|
#N/A!
|
|
|
#NAME!
|
|
|
#VALUE!
|
|
|
#REF!
|
|
Similar Functions