ACOS (Azure Cosmos DB)ACOS (Azure Cosmos DB)

适用于: SQL API

返回角度(弧度),其余弦是指定的数值表达式;也被称为反余弦。Returns the angle, in radians, whose cosine is the specified numeric expression; also called arccosine.

语法Syntax

ACOS(<numeric_expr>)  

参数Arguments

numeric_exprnumeric_expr
是一个数值表达式。Is a numeric expression.

返回类型Return types

返回一个数值表达式。Returns a numeric expression.

示例Examples

以下示例返回 -1 的 ACOSThe following example returns the ACOS of -1.

SELECT ACOS(-1) AS acos 

下面是结果集。Here is the result set.

[{"acos": 3.1415926535897931}]  

备注Remarks

此系统函数不会使用索引。This system function will not utilize the index.

后续步骤Next steps