COTH function
Returns the hyperbolic cotangent of a number (COSH ÷ SINH).
Available in Excel 2013 and later, Microsoft 365, Excel for the web, Excel for Mac 2016 and later
Excel 2013 and laterWorks in Google Sheets
Syntax
COTH(number)| Argument | What it means | |
|---|---|---|
number | Required | Any non-zero real number; |number| must be less than 2^27. |
Returns: 1 ÷ tanh(number); its absolute value is always greater than 1.
How COTH works
COTH is the reciprocal of TANH. It appears mostly in physics and engineering formulas: the Langevin function L(x) = coth(x) − 1/x describes how magnetic or electric dipoles line up in a field, and coth terms show up in heat transfer through fins and in transmission-line calculations.
For large positive inputs COTH approaches 1, for large negative inputs −1, and near 0 it shoots off to infinity; COTH(0) returns #DIV/0!. Before Excel 2013 write 1/TANH(x).
Examples
1Langevin function for x = 2
| A | B | |
|---|---|---|
| 1 | Input | Value |
| 2 | Field ratio x | 2 |
| 3 | 0.5373 |
Result: 0.5373
coth(2) ≈ 1.0373, minus 0.5 gives a net alignment of about 0.5373 (4 decimals), i.e. 54% of full saturation.
2Zero input
| A | |
|---|---|
| 1 | #DIV/0! |
Result: #DIV/0!
tanh(0) = 0, so there is no reciprocal.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | The number is 0. | Check the input. |
#NUM! | |number| ≥ 2^27. | Reduce the input. |
Tips
- Same as
=1/TANH(x)and=COSH(x)/SINH(x).
Google Sheets
COTH also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
COTH in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| German | COTHYP |