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.
Hide omitted argument names for this function
Omitted Argument NamesThe argument name for
field
can be omitted; the following forms of this function are equivalent:logscale Syntaxmath:sinh("value")
and:
logscale Syntaxmath: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
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
Starting with the source repository events.
- logscale
myvalue := 2.5
Assigns the value
2.5
to a variable named myvalue for use in the hyperbolic calculation. - 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
, wheree
is Euler's number. 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)
.