﻿---
title: ES|QL ATANH function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2659/reference/query-languages/esql/functions-operators/math-functions/atanh
products:
  - Elasticsearch
---

# ES|QL ATANH function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2659/reference/query-languages/esql/images/functions/atanh.svg)


## Parameters

<definitions>
  <definition term="number">
    Number between -1 and 1. If `null`, the function returns `null`.
  </definition>
</definitions>


## Description

Returns the [inverse hyperbolic tangent](https://en.wikipedia.org/wiki/Inverse_trigonometric_functions) of a number.

## Supported types


| number        | result |
|---------------|--------|
| double        | double |
| integer       | double |
| long          | double |
| unsigned_long | double |


## Example

```esql
ROW a=0.5
| EVAL atanh=ATANH(a)
```


| a:double | atanh:double       |
|----------|--------------------|
| 0.5      | 0.5493061443340548 |