- Categories:
Numeric functions (Trigonometric)
COT¶
Computes the cotangent of its argument; the argument should be expressed in radians.
Syntax¶
COT( <input_expr> )
Arguments¶
input_exprThe value or expression to operate on. The data type must be FLOAT or DECFLOAT.
Returns¶
If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.
Examples¶
SELECT COT(0), COT(PI()/3), COT(RADIANS(90)); --------+--------------+------------------+ COT(0) | COT(PI()/3) | COT(RADIANS(90)) | --------+--------------+------------------+ inf | 0.5773502692 | 6.123233996e-17 | --------+--------------+------------------+