VeloDB Cloud
SQL Manual
SQL Functions
Numeric Functions
ATAN2

atan2

description

Syntax

DOUBLE atan2(DOUBLE y, DOUBLE x) Returns the arc tangent of 'y' / 'x'.

example

mysql> select atan2(0.1, 0.2);
+---------------------+
| atan2(0.1, 0.2)     |
+---------------------+
| 0.46364760900080609 |
+---------------------+

mysql> select atan2(1.0, 1.0);
+---------------------+
| atan2(1.0, 1.0)     |
+---------------------+
| 0.78539816339744828 |
+---------------------+

keywords

ATAN2