JavaScript Math.exp()
Examples
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 »
Description
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.
JavaScript Logarthmic Functions:
The Math.log() MethodThe Math.log2() Method
The Math.log10() Method
The Math.log1p() Method
Logarthmic Properies:
The Math.LN2 PropertyThe Math.LN10 Property
The Math.LOG2E Property
The Math.LOG10E Property
Exponential Functions:
The Math.E Property (Euler's Number)The Math.exp() Method
The Math.expm1() Method
Syntax
Math.exp(x)
Parameters
Parameter | Description |
x | Required. A number. |
Return Value
Type | Description |
Number | Ex |
Browser Support
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 |