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
| Argument | Type | Description |
|---|---|---|
| x | Number | The x-coordinate |
| y | Number | The 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)
Updated over 1 year ago