COS (Azure Cosmos DB)COS (Azure Cosmos DB)
适用于:
SQL API
返回指定表达式中指定角度的三角余弦(弧度)。Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.
语法Syntax
COS(<numeric_expr>)
参数Arguments
numeric_exprnumeric_expr
是一个数值表达式。Is a numeric expression.
返回类型Return types
返回一个数值表达式。Returns a numeric expression.
示例Examples
以下示例计算指定角度的 COS
。The following example calculates the COS
of the specified angle.
SELECT COS(14.78) AS cos
下面是结果集。Here is the result set.
[{"cos": -0.59946542619465426}]
备注Remarks
此系统函数不会使用索引。This system function will not utilize the index.