ATN2 (Azure Cosmos DB)ATN2 (Azure Cosmos DB)
适用于:
SQL API
返回 y/x 的反正切的主体值,以弧度表示。Returns the principal value of the arc tangent of y/x, expressed in radians.
语法Syntax
ATN2(<numeric_expr>, <numeric_expr>)
参数Arguments
numeric_exprnumeric_expr
是一个数值表达式。Is a numeric expression.
返回类型Return types
返回一个数值表达式。Returns a numeric expression.
示例Examples
以下示例为指定的 x 和 y 组件计算 ATN2。The following example calculates the ATN2 for the specified x and y components.
SELECT ATN2(35.175643, 129.44) AS atn2
下面是结果集。Here is the result set.
[{"atn2": 1.3054517947300646}]
备注Remarks
此系统函数不会使用索引。This system function will not utilize the index.