mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 12:22:21 +00:00
Merge pull request #136 from jackchess/patch-1
e<sub>x<sub> to e<sup>x<sup>
This commit is contained in:
commit
ae1935566e
@ -512,7 +512,7 @@ ES6新增了4个对数相关方法。
|
|||||||
|
|
||||||
**(1) Math.expm1()**
|
**(1) Math.expm1()**
|
||||||
|
|
||||||
`Math.expm1(x)`返回e<sub>x</sub> - 1,即`Math.exp(x) - 1`。
|
`Math.expm1(x)`返回e<sup>x</sup> - 1,即`Math.exp(x) - 1`。
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Math.expm1(-1); // -0.6321205588285577
|
Math.expm1(-1); // -0.6321205588285577
|
||||||
|
Loading…
x
Reference in New Issue
Block a user