Edit

Share via


COT (NoSQL query)

The COT function calculates the trigonometric cotangent of the specified angle in radians.

Syntax

COT(<numeric_expr>)

Arguments

Description
numeric_expr A numeric expression.

Return types

Returns a numeric expression.

Examples

This section contains examples of how to use this query language construct.

Cotangent of a value

In this example, the COT function is used to calculate the cotangent of 124.1332 radians.

SELECT VALUE {
  cotangent: COT(124.1332)
}
[
  {
    "cotangent": -0.040311998371148884
  }
]

Remarks

  • This function doesn't utilize the index.