更多“试一试”的例子。
定义和用法
该exp()方法返回e x的值,其中E是欧拉数 (约2.7183),x是传递给它的数量。
浏览器支持
方法 | |||||
---|---|---|---|---|---|
exp() | 是 | 是 | 是 | 是 | 是 |
句法
Math.exp( x )
参数值
Parameter | Description |
---|---|
x | Required. A number |
技术细节
返回值: | 一个数字,代表E X |
---|---|
JavaScript的版本: | 1.0 |

更多示例
例
使用exp()对不同的号码的方法:
var a = Math.exp(-1);
var b = Math.exp(5);
var c = Math.exp(10);
的结果,b和c将是:
0.36787944117144233
148.4131591025766
22026.465794806718
试一试» 