From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Math Object
The exp() method returns the value of Ex, where E is Euler's constant (approximately 2.7183) and x is the number passed to it.
| Math.exp(x) |
| Parameter | Description |
|---|---|
| x | Required. A number |
Tip: E is the Euler's constant, which is the base of natural logarithms (approximately 2.7183).
ExampleUse the exp() method on different numbers:
The output of the code above will be:
Try it yourself » |
JavaScript Math Object
From http://www.w3schools.com (Copyright Refsnes Data)