These docs are for v1.0. Click to read the latest docs for v1.2.

ATAN2

Calculates the inverse tangent of the specified x- and y-coordinates (arctangent).

The arctangent is calculated as the angle (in radians) from the x-axis to a line containing the origin (0, 0) and the point (x, y).

Syntax

=ATAN2(x, y)

Arguments

ArgumentTypeDescription
xNumberThe x-coordinate
yNumberThe y-coordinate

Examples

=ATAN2(0, 1)1.5707963267948966
Calculates the angle from the x-axis to a line from the origin to (0, 1)

=ATAN2(1, 0)0
Calculates the angle from the x-axis to a line from the origin to (1, 0)

=ATAN2(@"Property 1", @"Property 2")-1.3956853388722992
Calculates the angle from the x-axis to a line from the origin to (@"Property 1", @"Property 2"). (0.23, -1.3)