Returns the arctangent of the x and y coordinates of a right triangle, in radians.
Category: | Trigonometric |
Returned data type: | DOUBLE |
specifies any valid SQL expression that evaluates to a numeric value. expression-1 specifies the x coordinate of the end of the hypotenuse of a right triangle.
Data type | DOUBLE |
See | <sql-expression> |
FedSQL Expressions |
specifies any valid SQL expression that evaluates to a numeric value. expression-2 specifies the y coordinate of the end of the hypotenuse of a right triangle.
Data type | DOUBLE |
See | <sql-expression> |
FedSQL Expressions |
Statements
|
Results
|
---|---|
select atan2(-1, 0.5); |
-1.10715 |
select atan2(6,8); |
0.643501 |
select atan2(5,-3); |
2.111216 |