> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/functions/asinh.md).

# asinh

Use the `asinh()` function to calculate the inverse hyperbolic sine of a numeric value.

## Syntax

```sql
asinh(<number>)
```

## Parameters

| Name     | Type           | Required | Description                                              |
| -------- | -------------- | -------- | -------------------------------------------------------- |
| `number` | integer, float | Yes      | The numeric value to evaluate. Any real number is valid. |

## Returns

**Type**: float

**Description**: The `asinh()` function returns the inverse hyperbolic sine of the input value. If the input is `null`, the function returns `null`.

## Usage notes

* **Input type**: XQL doesn't support NaN or infinite values as input and these value types also can not be returned.
* **Valid Input Range**: The `asinh()` function accepts any real number as input, unlike `acosh()` which requires values ≥ 1.
* **Null Handling**: If the input expression is `null`, the function returns `null`.
* **Symmetry**: The function is odd, meaning `asinh(-x) = -asinh(x)`.
* **Identity Value**: `asinh(0)` always returns `0.0`.
* **Common Use Cases**: This function is typically used within the `alter` stage to create new fields containing the calculated results. It is useful in mathematical modeling, data normalization, and scientific computations.

## Examples

### Example 1: Calculate inverse hyperbolic sine of literal values

**Goal**: Calculate the inverse hyperbolic sine for specific numeric literals to verify known mathematical results.

**XQL code**:

```sql
dataset = xdr_data
| limit 1
| alter result1 = asinh(0), result2 = asinh(1), result3 = asinh(-1)
| fields result1, result2, result3
```

**Explanation**: You use `asinh()` on three different literal values. `asinh(0)` returns `0.0`. `asinh(1)` returns approximately `0.8814`, and `asinh(-1)` returns approximately `-0.8814`, demonstrating the odd symmetry of the function.

**Output**:

| RESULT1 | RESULT2 | RESULT3  |
| ------- | ------- | -------- |
| 0.0     | 0.88137 | -0.88137 |

### Example 2: Calculate inverse hyperbolic sine from a field value

**Goal**: Calculate the inverse hyperbolic sine of values stored in a dataset field.

**XQL code**:

```sql
config timeframe = 1d
| dataset = sample_xql_raw
| alter asinh_result = asinh(numeric_value)
| fields event_id, numeric_value, asinh_result
| limit 3
```

**Explanation**: This query computes the inverse hyperbolic sine for each value in the `numeric_value` field using `asinh()` in the `alter` stage and stores the result in `asinh_result`. Unlike `acosh()`, no filtering is needed since `asinh()` accepts any real number.

**Output**:

| EVENT\_ID | NUMERIC\_VALUE | ASINH\_RESULT |
| --------- | -------------- | ------------- |
| 101       | 0.5            | 0.48121       |
| 102       | -2.0           | -1.44364      |
| 103       | 10.0           | 2.99822       |

### Example 3: Apply inverse hyperbolic sine to a calculated expression

**Goal**: Compute the inverse hyperbolic sine of a derived value from a subtraction operation.

**XQL code**:

```sql
config timeframe = 1d
| dataset = sample_xql_raw
| alter diff_value = subtract(numeric_value, 5)
| alter asinh_diff = asinh(diff_value)
| fields event_id, numeric_value, diff_value, asinh_diff
| limit 3
```

**Explanation**: This query first creates `diff_value` by subtracting 5 from `numeric_value`, then applies `asinh()` to the result. Since `asinh()` accepts any real number including negative values, no filtering is required.

**Output**:

| EVENT\_ID | NUMERIC\_VALUE | DIFF\_VALUE | ASINH\_DIFF |
| --------- | -------------- | ----------- | ----------- |
| 101       | 0.5            | -4.5        | -2.20727    |
| 102       | 8.0            | 3.0         | 1.81845     |
| 103       | 10.0           | 5.0         | 2.31244     |

## Related articles

* **Stages**: [`alter`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/stages/alter.md), [`filter`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/stages/filter.md), [`fields`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/stages/fields.md), [`limit`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/stages/limit.md)
* **Functions**: [`sinh`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/functions/sinh.md), [`acosh`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/functions/acosh.md), [`atanh`](https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/functions/atanh.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/xql-command-reference-guide/readme/functions/asinh.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
