w3resource

MySQL COT() function

COT() function

MySQL COT() returns the cotangent of a number.

Syntax:

COT(N);

Argument:

Name Description
N A number whose cotangent value is to be retrieved.

Syntax Diagram:

MySQL COT() Function - Syntax Diagram

MySQL Version: 5.6


Pictorial presentation of MySQL COT() function

pictorial presentation of MySQL COT() function

Example of MySQL COT() function

Code:

SELECT COT(7);

Explanation:

The above MySQL statement will return the cotangent of the number specified as an argument.

Sample Output:

mysql> SELECT COT(7);
+------------------+
| COT(7)           |
+------------------+
| 1.14751542240514 | 
+------------------+
1 row in set (0.01 sec)

All Mathematical Functions

MySQL Mathematical Functions, slide presentation

Previous:COS()
Next: CRC32()



Follow us on Facebook and Twitter for latest update.




We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook