Cloud

cot

The cot() function returns the cotangent of a specified angle, expressed in radians. See also cotd() for an angle expressed in degrees.

Syntax

COT(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 COT(0.5);
        cot
-------------------
 1.830487721712452
(1 row)

Different angle

SELECT COT(1);
        cot
--------------------
 0.6420926159343308
(1 row)