This MySQL function returns the arctangent, in radians, of a given number.
Below is the syntax for this command. Text within square brackets (i.e, [ and ] ) are optional. Choices are separated by bars (i.e, | ). Ellipses preceded by a comma indicates a repeating pattern. Ellipses before or after syntax are used to highlight a relevant except from the larger syntax. Text displayed in italic letters represent text that should be replaced with the specific names related to the database (e.g., column with the name of the column).
ATAN(number[, . . . ])
This function returns the arctangent, in radians, of a given number. To determine the arctangent of two numbers (Y and X), add the optional second argument to the function or use ATAN2( ). The value of Y for a Cartesian plane is given as the first argument and X as the second.
SELECT ATAN(2); +----------+ | ATAN(2) | +----------+ | 1.107149 | +----------+