Hyperbolic
| Function | Signature | Description |
|---|---|---|
sinh | (x: f64) => f64 | Hyperbolic sine |
cosh | (x: f64) => f64 | Hyperbolic cosine |
tanh | (x: f64) => f64 | Hyperbolic tangent |
sinh()
Returns the hyperbolic sine of a number.
Signature
sinh(x: f64): f64tyrus
const value: f64 = 1.0;
const result: f64 = sinh(value);
print(result); // ~1.1752cosh()
Returns the hyperbolic cosine of a number.
Signature
cosh(x: f64): f64tyrus
const value: f64 = 1.0;
const result: f64 = cosh(value);
print(result); // ~1.5431tanh()
Returns the hyperbolic tangent of a number.
Signature
tanh(x: f64): f64tyrus
const value: f64 = 1.0;
const result: f64 = tanh(value);
print(result); // ~0.7616