Name
ATAN2( )
Synopsis
SELECT ATAN(2); +----------+ | ATAN(2) | +----------+ | 1.107149 | +----------+
ATAN2(number
,number
)
This function
returns the arc tangent in radians of X and Y for a point on a
Cartesian plane. The value for Y is given as the first argument and X
as the second. The reverse function is TAN( )
.
SELECT ATAN2(10, 5); +--------------+ | ATAN2(10, 5) | +--------------+ | 1.107149 | +--------------+
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.