Notă
Accesul la această pagină necesită autorizare. Puteți încerca să vă conectați sau să modificați directoarele.
Accesul la această pagină necesită autorizare. Puteți încerca să modificați directoarele.
The ATN2 function calculates the principal value of the arctangent of y/x, expressed in radians.
Syntax
ATN2(<numeric_expr_y>, <numeric_expr_x>)
Arguments
| Description | |
|---|---|
numeric_expr_y |
A numeric expression for the y component. |
numeric_expr_x |
A numeric expression for the x component. |
Return types
Returns a numeric expression.
Examples
This section contains examples of how to use this query language construct.
Arctangent for y/x
In this example, the ATN2 function is used to calculate the arctangent for the specified x and y components.
SELECT VALUE {
arctangentInRadians: ATN2(35.175643, 129.44)
}
[
{
"arctangentInRadians": 0.265344532064832
}
]
Remarks
- This function doesn't utilize the index.