tanh

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

The hyperbolic tangent 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 tanh(of(Trigonometry::x))
}

External resources