---
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: 118
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/math/cosh/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.22.0+

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)}))
```
