Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.aggregation.operatorsTrigonometryValueOperatorssinh

sinh

open fun <Context : Any> sinh(value: Value<Context, Double?>): Value<Context, Double?>

The hyperbolic sine of a value that is measured in radians.

If the value is null or NaN, it is returned unchanged.

Example

class Trigonometry(
    val name: String,
    val x: Double,
    val y: Double,
)

collection.aggregate()
    .set {
        Trigonometry::y set sinh(of(Trigonometry::x))
    }

External resources