COTH
Returns the hyperbolic cotangent of a number, defined as COSH(x) / SINH(x).
COTH is the reciprocal of TANH where defined.
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
=COTH(number)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
How it works
Hyperbolic cotangent is cosh(x) / sinh(x). The denominator is zero at x = 0, its only real pole.
Remarks
- Domain: valid for all real numbers except
0. - Radians: this function is hyperbolic, so the input is not treated as an angle in radians.
Error cases
- Errors: returns
#DIV/0!whenSINH(x)is zero (atx = 0).
Examples
Divide cosh by sinh at one half.
Formula =COTH(0.5)
Expected result 2.16395341373865
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?.
Reflect the input to change the sign of the hyperbolic cotangent.
Formula =COTH(-0.5)
Expected result -2.16395341373865
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?.
Near zero on the positive side, the denominator sinh(0.01) is small.
Formula =COTH(0.01)
Expected result 100.003333311111
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?.
Nonnumeric text cannot be used as the input.
Formula =COTH("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 cotangent at one
Formula =COTH(1)
Expected result 1.31303528549933
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?.
Division by zero at origin
Formula =COTH(0)
Expected result #DIV/0!
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
Why is COTH undefined at zero?
COTH divides by SINH(x), and SINH(0) is zero, so #DIV/0! is returned.