Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

COT Function

COT is a trigonometric function that returns the cotangent of a number. The input parameter must be nonzero.

Syntax

Copy
COT(number)

Argument

number

The input parameter is a double precision number.

Return Type

The COT function returns a double precision number.

Examples

The following example returns the cotangent of 1:

Copy
select cot(1); cot ------------------- 0.642092615934331 (1 row)