ATan2

Syntax

ATan2(X, Y)

Parameters

X. X coordinate of a point.

Y. Y coordinate of a point.

NOTE. To determine the parameter, specify either the number or the address of the cell where it is located.

Description

It returns the arctangent for the specified X and Y coordinates.

Comments

Arctangent is the angle from X axis (0, 0) to a line containing the origin (0, 0) and a point with coordinates (X, Y). The angle is specified in radians within the range between "-Pi" and "Pi", except "-Pi".

Example

Formula Result Description
=ATan2(1, -1) -0,7854 The arctangent for the point with the coordinates (1, -1) expressed in radians.
=ATan2(A3, A4) 0,4636 The arctangent for the point with the coordinates specified in the A3 and A4 cells. The A3 cell contains the 2 number, and A4 contains 1.

NOTE. To convert the result from radians to degrees, use the Degrees feature.

See also:

Function WizardMathematical FunctionsATanATanHTan │ │ TanHDegrees