elasticsearch/docs/reference/query-languages/esql/_snippets/functions/tanh.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
593 B
Markdown
Raw Normal View History

## `TANH` [esql-tanh]
**Syntax**
:::{image} ../../../../../images/tanh.svg
:alt: Embedded
:class: text-center
:::
**Parameters**
`number`
: Numeric expression. If `null`, the function returns `null`.
**Description**
Returns the [hyperbolic tangent](https://en.wikipedia.org/wiki/Hyperbolic_functions) of a number.
**Supported types**
| number | result |
| --- | --- |
| double | double |
| integer | double |
| long | double |
| unsigned_long | double |
**Example**
```esql
ROW a=1.8
| EVAL tanh=TANH(a)
```
| a:double | tanh:double |
| --- | --- |
| 1.8 | 0.9468060128462683 |