$sinh (aggregation)
$sinhNew in version 4.2.
Returns the hyperbolic sine of a value that is measured in radians.
$sinhhas the following syntax:{ $sinh: <expression> }$sinhtakes any valid expression that resolves to a number, measured in radians. If the expression returns a value in degrees, use the$degreesToRadiansoperator to convert the value to radians.By default
$sinhreturns values as adouble.$sinhcan also return values as a 128-bit decimal if the<expression>resolves to a 128-bit decimal value.For more information on expressions, see Expressions.
Behavior
null, NaN, and +/- Infinity
If the input argument resolves to a value of null or refers to a field that is missing, $sinh returns null. If the argument resolves to NaN, $sinh returns NaN. If the argument resolves to negative or positive Infinity, $sinh returns negative or positive Infinity respectively.
| Example | Results |
|---|---|
{ $sinh: NaN } | NaN |
{ $sinh: null } | null |
{ $sinh: -Infinity } | -Infinity |
{ $sinh: Infinity } | Infinity |