# COT

Returns the cotangent of **x**, where **x** is given in radians, or NULL if **x** is invalid.

## Syntax

```sql
COT (x)

```

## Arguments

* x: the argument

## Return Type

Float or double. NULL if **x** is NULL or invalid.

## Examples

```sql
SELECT COT(3.14159265359 / 2);

```

```output

+----------------------------------+
| COT(3.14159265359 / 2)           |
+----------------------------------+
| -0.00000000000010341155355510721 |
+----------------------------------+

```

***

Modified at: February 24, 2023

Source: [/db/v9.1/reference/sql-reference/numeric-functions/cot/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/numeric-functions/cot/)

(An index of the documentation is available at /llms.txt)
