Math.cosh

Math.cosh

Math.cosh

Function

Hyperbolic cosine. Returns the hyperbolic cosine of value.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueNumberYesNoneThe number involved in the calculation.

Return value

TypeDescription
Int/FloatReturns the hyperbolic cosine of value. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • Internally uses Rust f64's cosh operation.