---
title: math.cosh() function
description: math.cosh() returns the hyperbolic cosine of x.
url: https://docs.influxdata.com/flux/v0/stdlib/math/cosh/
estimated_tokens: 600
product: Flux
version: v0
---

# math.cosh() function

-   Flux 0.22.0+
-   View InfluxDB support

`math.cosh()` returns the hyperbolic cosine of `x`.

##### Function type signature

```js
(x: float) => float
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### x

(Required) Value to operate on.

## Examples

### Use math.cosh in map

```js
import "math"
import "sampledata"

sampledata.float()
    |> map(fn: (r) => ({_time: r._time, _value: math.cosh(x: r._value)}))
```
