Skip to content
This is an archived version of the documentation downloaded from LogScale Documentation Archives. Up to date documentation, and documentation for later versions, is available on LogScale Documentation

## `math:sinh()`

Calculates the hyperbolic sine of a double field. The hyperbolic sine of x is defined to be `(ex - e-x)/2` where e is Euler's number.

### Note

Math functions on ARM architecture may return different results in very high-precision calculationsc compared to Intel/AMD architectures.

Parameter | Type | Required | Default Value | Description
--- | --- | --- | --- | ---
`as` | string | optional[a] | `_sinh` | The name of the output field.
`field`[b] | string | required |  | The name of the input field.
[a] Optional parameters use their default value unless explicitly set. [b] The parameter name `field` can be omitted.

Hide omitted argument names for this function

Show omitted argument names for this function

> Omitted Argument Names

> The argument name for `field` can be omitted; the following forms of this function are equivalent:

> logscale Syntax

>     math:sinh("value")

> and:

> logscale Syntax

>     math:sinh(field="value")

> These examples show basic structure only.

### `math:sinh()` Examples

Click + next to an example below to get the full details.

#### Calculate Hyperbolic Sine

Compute hyperbolic sine values using the `math:sinh()` function

##### Query

logscale

    myvalue := 2.5
    | math:sinh(myvalue, as=hyperbolic_sine)

##### Introduction

In this example, the `math:sinh()` function is used to calculate the hyperbolic sine of a value, demonstrating how this hyperbolic function differs from regular trigonometric sine.

Example incoming data might look like this:

##### Step-by-Step

1. Starting with the source repository events.

2. logscale

       myvalue := 2.5

   Assigns the value `2.5` to a variable named myvalue for use in the hyperbolic calculation.

3. logscale

       | math:sinh(myvalue, as=hyperbolic_sine)

   Calculates the hyperbolic sine of the value in the myvalue field and returns the result in a new field named hyperbolic_sine. The `math:sinh()` function computes the value using the formula`(e^x - e^-x)/2`, where `e` is Euler's number.

4. Event Result set.

##### Summary and Results

The query is used to calculate hyperbolic sine values, which are important in various mathematical and physical applications.

This query is useful, for example, to analyze exponential growth patterns, solve differential equations, or process data in fields such as electrical engineering and physics where hyperbolic functions are commonly used.

Sample output from the incoming example data:

hyperbolic_sine
6.0502044

Note that the hyperbolic sine function is an odd function, meaning `sinh(-x) = -sinh(x)`.

#### Enter search term