English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Math.exp()The method returns e Xwhere x is the independent variable, and e is Euler's number (also known as Napier's constant), the base of the natural logarithm.
Since exp() is a static method of Math, you always use it asMath.exp()It is not used as a method of creating the Math object, but as a method.
Math.exp(x)
Math.exp(1); Math.exp(0); Math.exp(-1);Test and See‹/›
All browsers fully support the Math.exp() method:
Method | |||||
Math.exp() | is | is | is | is | is |
Parameter | Description |
---|---|
x | Numeric |
Return Value: | represents e xwhere e is the Euler's number, and x is the independent variable |
---|---|
JavaScript Version: | ECMAScript 1 |