Skip to content

Hyperbolic ​

FunctionSignatureDescription
sinh(x: f64) => f64Hyperbolic sine
cosh(x: f64) => f64Hyperbolic cosine
tanh(x: f64) => f64Hyperbolic tangent

sinh() ​

Returns the hyperbolic sine of a number.

Signaturesinh(x: f64): f64
tyrus
const value: f64 = 1.0;
const result: f64 = sinh(value);
print(result); // ~1.1752

cosh() ​

Returns the hyperbolic cosine of a number.

Signaturecosh(x: f64): f64
tyrus
const value: f64 = 1.0;
const result: f64 = cosh(value);
print(result); // ~1.5431

tanh() ​

Returns the hyperbolic tangent of a number.

Signaturetanh(x: f64): f64
tyrus
const value: f64 = 1.0;
const result: f64 = tanh(value);
print(result); // ~0.7616