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
49 lines (32 loc) • 1.02 kB
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Calculate the value of subtracting 1 from the exponential value.
For matrices, the function is evaluated element wise.
```js
math.expm1(x)
```
Parameter | Type | Description
--------- | ---- | -----------
`x` | number &
Type | Description
---- | -----------
number &
```js
math.expm1(2) // returns number 6.38905609893065
math.pow(math.e, 2) - 1 // returns number 6.3890560989306495
math.log(math.expm1(2) + 1) // returns number 2
math.expm1([1, 2, 3])
// returns Array [
// 1.718281828459045,
// 6.3890560989306495,
// 19.085536923187668
// ]
```
[ ](exp.md),
[ ](log.md),
[ ](pow.md)