Cloud

cotd

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

Syntax

COTD(x)

Arguments

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

Return type

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

Examples

Basic usage

SELECT COTD(45);
        cotd
--------------------
 1.0000000000000002
(1 row)

Different angle

SELECT COTD(90);
         cotd
-----------------------
 6.123233995736766e-17
(1 row)