MySQL COT() Function

In MySQL, the COT() function returns the cotangent of the specified number.

COT() Syntax

Here is the syntax of MySQL COT() function:

COT(number)

Parameters

number
Required. The number whose cotangent is to be returned.

Return value

In MySQL, the COT() function returns the cotangent of the specified number.

If the parameter number is NULL, the CEIL() function will return NULL.

COT() Examples

SELECT
    COT(2.5),
    COT(0.2),
    COT(-0.5),
    COT(-0.2),
    COT(0),
    COT(PI()),
    COT(NULL)\G

output

*************************** 1\. row ***************************
 COT(2.5): 0.5984721441039565
 COT(0.2): 0.19866933079506122
COT(-0.5): -0.479425538604203
COT(-0.2): -0.19866933079506122
   COT(0): 0
COT(PI()): 1.2246467991473532e-16
COT(NULL): NULL