Cloud

acos

The acos() function returns the inverse cosine (arccosine) of a specified argument, expressed in radians. See also acosd() to return the result in degrees.

Syntax

ACOS(x)

Arguments

  • x: A number of type real or double precision, between -1 and 1 inclusive.

Return type

Same as the input type (real or double precision).

Examples

Basic usage

SELECT ACOS(1);
 acos
------
    0
(1 row)

Fractional argument

SELECT ACOS(0.5);
       acos
-------------------
 1.0471975511965976
(1 row)