mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
50 lines (30 loc) • 878 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Calculate the hyperbolic cotangent of a value,
defined as `coth(x) = 1 / tanh(x)`.
For matrices, the function is evaluated element wise.
```js
math.coth(x)
```
Parameter | Type | Description
--------- | ---- | -----------
`x` | number &
Type | Description
---- | -----------
number &
Type | Description
---- | -----------
```js
// coth(x) = 1 / tanh(x)
math.coth(2) // returns 1.0373147207275482
1 / math.tanh(2) // returns 1.0373147207275482
```
[](sinh.md),
[](tanh.md),
[](cosh.md)