COSH function
Overview
COSH is a function of the Math and Trigonometry category that calculates the hyperbolic cosine of a number.
Usage
Syntax
COSH(number) => cosh
Argument descriptions
- number (number, required). The hyperbolic angle whose hyperbolic cosine is to be calculated, expressed in radians.
Additional guidance
The formula for the hyperbolic cosine is:
Returned value
COSH returns a real number that is the hyperbolic cosine of the specified hyperbolic angle.
Error conditions
- In common with many other IronCalc functions, COSH propagates errors that are found in its argument.
- If no argument, or more than one argument, is supplied, then COSH returns the
#ERROR!
error. - If the value of the number argument is not (or cannot be converted to) a number, then COSH returns the
#VALUE!
error. - For some argument values, COSH may return a
#DIV/0!
error. - For more information about the different types of errors that you may encounter when using IronCalc functions, visit our Error Types page.
Details
- The COSH function utilizes the cosh() method provided by the Rust Standard Library.
- The figure below illustrates the COSH function.
Examples
See some examples in IronCalc.
Links
- For more information about hyperbolic functions, visit Wikipedia's Hyperbolic functions page.
- See also IronCalc's SINH, COS and TAN functions.
- Visit Microsoft Excel's COSH function page.
- Both Google Sheets and LibreOffice Calc provide versions of the COSH function.