Sinh v0.1.0

Source
Returns the hyperbolic sine.

Package: Math

Signature

func Sinh(x: float64) -> float64;
func Sinh(x: float32) -> float32;

Parameters

NameTypeDescription
xfloat64 / float32Any value.

Returns

The hyperbolic sine of x. Sinh(±0.0) is ±0.0, preserving the sign, and Sinh(±Inf) is ±Inf. Sinh overflows to ±Inf for large |x|. A NaN argument propagates.

Example

import Math::Sinh;

func Main() -> int {
    let a = Sinh(0.0); // 0.0
    let b = Sinh(1.0); // 1.1752011936438014
    return 0;
}

See also

  • Math — the package overview
  • Cosh — hyperbolic cosine
  • Tanh — hyperbolic tangent
  • Exp — the exponential Sinh is built on