1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

e<sub>x<sub> to e<sup>x<sup>

This commit is contained in:
Kaipeng Lu 2016-02-01 14:33:52 +08:00
parent 5d673d9b98
commit 6febd5de0b

View File

@ -512,7 +512,7 @@ ES6新增了4个对数相关方法。
**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
Math.expm1(-1); // -0.6321205588285577