Sinh v0.1.0
Returns the hyperbolic sine.
Package: Math
Signature
func Sinh(x: float64) -> float64;
func Sinh(x: float32) -> float32;
Parameters
| Name | Type | Description |
|---|---|---|
x | float64 / float32 | Any 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;
}