COSH
Returns the hyperbolic cosine of a number.
COSH computes (e^x + e^-x) / 2.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=COSH(number)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
How it works
Hyperbolic cosine is (exp(x) + exp(−x)) / 2. It is at least 1 for all real inputs.
Remarks
- Domain: accepts any real number.
- Radians: this function is hyperbolic, so the input is not treated as an angle in radians.
Error cases
- Errors: no function-specific domain errors are produced.
Examples
Average exp(0.5) and exp(−0.5).
Formula =COSH(0.5)
Expected result 1.12762596520638
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Negating the argument swaps the terms in the same average.
Formula =COSH(-0.5)
Expected result 1.12762596520638
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
At zero both exponential terms equal one.
Formula =COSH(0)
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The text “invalid” cannot be used as the input to the hyperbolic cosine.
Formula =COSH("invalid")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Hyperbolic cosine at one
Formula =COSH(1)
Expected result 1.54308063481524
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Can COSH produce #NUM! domain errors?
No function-specific domain errors are enforced for real inputs.