This tutorial explains how to use the MySQL COT function with syntax and examples.
The MySQL COT function returns the cotangent of a number.
The syntax for the COT function in MySQL is:
COT( number )
The number used to calculate the cotangent.
The COT function can be used in the following versions of MySQL:
Let's look at some MySQL COT function examples and explore how to use the COT function in MySQL.
For example:
mysql> SELECT COT(4);
Output: 0.8636911544506167
mysql> SELECT COT(-1);
Output: -0.6420926159343306
mysql> SELECT COT(3.4);
Output: 3.7833373375604737