ATAN(Y,X), ATAN2(Y,X) returns the arc tangent of the two variables X and Y. : ATAN : Math Numeric Functions MySQL TUTORIALS


MySQL TUTORIALS » Math Numeric Functions » ATAN »

 

ATAN(Y,X), ATAN2(Y,X) returns the arc tangent of the two variables X and Y.


mysql>
mysql>
mysql> SELECT ATAN(-2,2);
+-------------------+
| ATAN(-2,2)        |
+-------------------+
| -0.78539816339745 |
+-------------------+
row in set (0.00 sec)

mysql> SELECT ATAN2(PI(),0);
+-----------------+
| ATAN2(PI(),0)   |
+-----------------+
1.5707963267949 |
+-----------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Math Numeric Functions
» ATAN