COT

Trigonometric function that calculates the cotangent of a specific value in radians.

Syntax

COT(<value>)

Parameters

Parameter Description Supported input types
<value> The value which the COT function will be applied to in radians. DOUBLE PRECISION

Return Types

COT returns a value of type DOUBLE PRECISION.

Example

The following query calculates the cotangent of 1.57 radians, which is approximately pi/2:

SELECT COT(1.57) as result;

Returns

result (DOUBLE PRECISION)
0.0007963269632231926