ATAN2 (Lakehouse v1)
Returns the arc tangent of the two variables x and y. It is similar to calculating the arc tangent of y / x, except that the signs of both arguments are used to determine the quadrant of the result. ATAN(y, x) is a synonym for ATAN2(y, x).
Analyze Syntax
Section titled “Analyze Syntax”func.atan2( <y, x> )Analyze Examples
Section titled “Analyze Examples”func.atan2((- 2), 2)
┌─────────────────────┐│ func.atan2((- 2), 2)│├─────────────────────┤│ -0.7853981633974483 │└─────────────────────┘SQL Syntax
Section titled “SQL Syntax”ATAN2( <y, x> )SQL Examples
Section titled “SQL Examples”SELECT ATAN2(-2, 2);
┌─────────────────────┐│ atan2((- 2), 2) │├─────────────────────┤│ -0.7853981633974483 │└─────────────────────┘