Categories:
Numeric Functions (Trigonometric)

ATAN2

Computes the inverse tangent (arc tangent) of the ratio of its two arguments (i.e. ATAN2(x,y) = ATAN(x/y)). The result is a number in the interval [-pi, pi].

See also:
ATAN

Syntax

ATAN2( <real_expr> , <real_expr> )

Examples

SELECT ATAN2(5, 5);

--------------+
 ATAN2(5, 5)  |
--------------+
 0.7853981634 |
--------------+