> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

# COTH

> Reference material for COTH function

Calculates the hyperbolic cotangent of a provided value.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
COTH(<value>)
```

## Parameters

| Parameter | Description | Supported input types |
| :- | :- | :- |
| `<value>` | The value that determines the returned hyperbolic cotangent. | `DOUBLE PRECISION` |

## Return Type

`DOUBLE PRECISION`

`COTH` is the reciprocal of `TANH`, which is zero only at zero, so an argument of zero raises a division-by-zero error. A large argument gives an infinite hyperbolic tangent, whose reciprocal is zero.

## Example

`COTH` is `1 / TANH`, so at `LN(2)` it is `1 / 0.6`, or `5/3`:

```
SELECT COTH(LN(2)) as result;
```

| result double |
| :- |
| 1.6666666666666667 |

Rows: 1Execution time: 5.21ms

`COTH` approaches 1 as its argument grows:

```
SELECT COTH(2) as result;
```

| result double |
| :- |
| 1.0373147207275482 |

Rows: 1Execution time: 5.21ms


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.