For the complete documentation index, see llms.txt. This page is also available as Markdown.

asinh

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

Syntax

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:

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:

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:

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

Was this helpful?