diff --git a/docs/src/functions/images/hyperboliccosine-curve.png b/docs/src/functions/images/hyperboliccosine-curve.png new file mode 100644 index 0000000..587b11d Binary files /dev/null and b/docs/src/functions/images/hyperboliccosine-curve.png differ diff --git a/docs/src/functions/math_and_trigonometry/cosh.md b/docs/src/functions/math_and_trigonometry/cosh.md index 121f79a..577b876 100644 --- a/docs/src/functions/math_and_trigonometry/cosh.md +++ b/docs/src/functions/math_and_trigonometry/cosh.md @@ -3,9 +3,37 @@ layout: doc outline: deep lang: en-US --- +# 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](/features/value-types#numbers), required). The hyperbolic angle whose hyperbolic cosine is to be calculated, expressed in radians. +### Additional guidance +The formula for the hyperbolic cosine is: +$$ +\text{cosh(x)} = \dfrac{e^x+e^{-x}}{2} +$$ +### Returned value +COSH returns a real [number](/features/value-types#numbers) 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!`](/features/error-types.md#error) error. +* If the value of the *number* argument is not (or cannot be converted to) a [number](/features/value-types#numbers), then COSH returns the [`#VALUE!`](/features/error-types.md#value) error. +* For some argument values, COSH may return a [`#DIV/0!`](/features/error-types.md#div-0) error. + +## Details +* The COSH function utilizes the *cosh()* method provided by the [Rust Standard Library](https://doc.rust-lang.org/std/). +* The figure below illustrates the COSH function. +
