# cot

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

---
title: cot
latest-operator-version: v26.2.4
latest-console-tag: v3.12.0
latest-connect-version: 4.113.1
latest-redpanda-tag: v26.2.4
docname: sql/sql-functions/math-functions/cot
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: sql/sql-functions/math-functions/cot.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/reference/pages/sql/sql-functions/math-functions/cot.adoc
description: The `cot()` function returns the cotangent of a specified angle, expressed in radians.
page-topic-type: reference
page-git-created-date: "2026-09-08"
page-git-modified-date: "2026-09-08"
---

<!-- Source: https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-functions/math-functions/cot.md -->

The `cot()` function returns the cotangent of a specified angle, expressed in radians. See also [`cotd()`](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-functions/math-functions/cotd/) for an angle expressed in degrees.

## [](#syntax)Syntax

```sql
COT(x)
```

## [](#arguments)Arguments

-   `x`: An angle, in radians, of type `real` or `double precision`.


## [](#return-type)Return type

Same as the input type (`real` or `double precision`).

## [](#examples)Examples

### [](#basic-usage)Basic usage

```sql
SELECT COT(0.5);
```

```sql
        cot
-------------------
 1.830487721712452
(1 row)
```

### [](#different-angle)Different angle

```sql
SELECT COT(1);
```

```sql
        cot
--------------------
 0.6420926159343308
(1 row)
```