> ## 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.

> Reference material for COSH function

# COSH

Calculates the hyperbolic cosine of a provided value.

## Syntax

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

## Parameters

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

## Return Type

`DOUBLE PRECISION`

`COSH` is defined for every real argument and never returns a value below 1. An argument whose hyperbolic cosine overflows `DOUBLE PRECISION` raises an out-of-range error rather than returning infinity.

## Example

The hyperbolic cosine of 0 is 1:

<div className="query-window">
  ```
  SELECT COSH(0) as result;
  ```

  | result <span>double</span> |
  | :------------------------- |
  | 1                          |

  <p><span>Rows: 1</span><span>Execution time: 5.21ms</span></p>
</div>

At `LN(2)` the result is exact — `(2 + 1/2) / 2`:

<div className="query-window">
  ```
  SELECT COSH(LN(2)) as result;
  ```

  | result <span>double</span> |
  | :------------------------- |
  | 1.25                       |

  <p><span>Rows: 1</span><span>Execution time: 5.21ms</span></p>
</div>
