--- title: Math.exp() slug: Web/JavaScript/Reference/Global_Objects/Math/exp translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp ---
Math.exp()함수는 x를 인수로 하는 ex 값을 반환합니다. 그리고 e는 {{jsxref("Math.E", "오일러 상수(또는 네이피어 상수)", "", 1)}}는 자연 로그의 밑입니다.
Math.exp(x)
xe는 {{jsxref("Math.E", "오일러 상수", "", 1)}}이고 x는 인수인 ex값
exp()는 Math의 정적 메소드이기 때문에 새로 작성한 Math 오브젝트 대신에 항상 Math.exp()의 형태로 써야 합니다. (Math는 생성자가 아닙니다.)
Math.exp() 사용 예Math.exp(-1); // 0.36787944117144233 Math.exp(0); // 1 Math.exp(1); // 2.718281828459045
| 설명 | 상태 | 비고 |
|---|---|---|
| {{SpecName('ES1')}} | {{Spec2('ES1')}} | 최초의 정의. JavaScript 1.0.에서 첫 시행. |
| {{SpecName('ES5.1', '#sec-15.8.2.8', 'Math.exp')}} | {{Spec2('ES5.1')}} | |
| {{SpecName('ES6', '#sec-math.exp', 'Math.exp')}} | {{Spec2('ES6')}} | |
| {{SpecName('ESDraft', '#sec-math.exp', 'Math.exp')}} | {{Spec2('ESDraft')}} |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
{{Compat("javascript.builtins.Math.exp")}}