let x = Math.exp(3);
Try it Yourself »
let a = Math.exp(1);
let b = Math.exp(-1);
let c = Math.exp(5);
let d = Math.exp(10);
Try it Yourself »
The Math.exp()
method returns the value of Ex, where E is Euler's number (approximately 2.7183) and x is the number passed to it.
Math.exp(
x)
Parameter | Description |
x | Required. A number. |
Type | Description |
Number | Ex |
Math.exp()
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!