math.cosh

Full name
math.cosh
Library
math
Syntax

math.cosh(x)

Description

The math.cosh function returns the hyperbolic cosine of the number passed as an argument.

The hyperbolic cosine function has the following graph:

math.cosh
Parameters
  • x: Number from which to obtain the hyperbolic cosine.
Result

The math.cosh function returns a real number.

Examples

We can obtain the hyperbolic cosine of the number 0.5 with the following code:

math.cosh(0.5)
1.1276259652063807
Submitted by admin on Sun, 02/14/2021 - 09:26