Edit

Share via


ACOS (NoSQL query)

The ACOS function calculates the trigonometric arccosine of the specified numeric value. The arccosine is the angle, in radians, whose cosine is the specified numeric expression.

Syntax

ACOS(<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.

Arccosine of a value

In this example, the ACOS function is used to calculate the arccosine of -1.

SELECT VALUE { 
  arccosine: ACOS(-1) 
}
[
  {
    "arccosine": 3.141592653589793
  }
]

Remarks

  • This function doesn't utilize the index.