English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Math.exp()The method returns e X, where x is the independent variable and e is the Euler 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(), not used as a method of the created Math object.
Math.exp(x)
Math.exp(1); Math.exp(0); Math.exp(-1);Test 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 xof the number, where e is the Euler number and x is the independent variable |
---|---|
JavaScript Version: | ECMAScript 1 |