JS Built-ins
← Math104 / 215
Mathcoshintermediate

Math.cosh(Infinity) Equals Infinity

πŸ“– Usage Example
// Hyperbolic cosine
Math.cosh(0)   // β†’ 1
Math.cosh(1)   // β†’ 1.5430...

Use Math.cosh() to compute the hyperbolic cosine, commonly used in physics and engineering formulas.

Math.cosh(x)

As x β†’ ∞, Math.cosh(x) also grows without bound.

Challenge: Verify that Math.cosh(Infinity) returns Infinity.

πŸ’‘ Hints (2)
  • β€’ cosh grows exponentially for large values
  • β€’ Math.cosh(100) β‰ˆ 1.34e43