For the complete documentation index, see llms.txt. This page is also available as Markdown.

COT

Calculate cotangent. This function returns the cotangent of an angle given in radians.

Syntax

COT(X)

Description

Returns the cotangent of X.

Examples

SELECT COT(42);
+--------------------+
| COT(42)            |
+--------------------+
| 0.4364167060752729 |
+--------------------+

SELECT COT(12);
+---------------------+
| COT(12)             |
+---------------------+
| -1.5726734063976893 |
+---------------------+

SELECT COT(0);
ERROR 1690 (22003): DOUBLE value is out of range in 'cot(0)'

This page is licensed: GPLv2, originally from fill_help_tables.sql

spinner

Last updated

Was this helpful?