Cloud

cos

The cos() function returns the cosine of a specified angle, expressed in radians. See also cosd() for an angle expressed in degrees.

Syntax

COS(x)

Arguments

  • x: An angle, in radians, of type real or double precision.

Return type

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

Examples

Basic usage

SELECT COS(0);
 cos
-----
   1
(1 row)

Non-zero angle

SELECT COS(1);
        cos
--------------------
 0.5403023058681398
(1 row)