Baseline Widely available
Math.exp()
ã¯éçã¡ã½ããã§ã e ã®ããæ°å¤ã®ã¹ãä¹ãè¿ãã¾ãã
console.log(Math.exp(0));
// Expected output: 1
console.log(Math.exp(1));
// Expected output: 2.718281828459 (approximately)
console.log(Math.exp(-1));
// Expected output: 0.36787944117144233
console.log(Math.exp(2));
// Expected output: 7.38905609893065
æ§æ 弿° è¿å¤
ex ã表ãéè² ã®æ°ã§ã e ã¯èªç¶å¯¾æ°ã®åºã§ãã
解説exp()
㯠Math
ã®éçã¡ã½ããã§ãããããçæãã Math
ãªãã¸ã§ã¯ãã®ã¡ã½ããã¨ãã¦ã§ã¯ãªãã常㫠Math.exp()
ã¨ãã¦ä½¿ç¨ããããã«ãã¦ãã ãã (Math
ã¯ã³ã³ã¹ãã©ã¯ã¿ã¼ã§ã¯ããã¾ãã)ã
e
ã®ã¹ãä¹ã 0 ã«é常ã«è¿ãå¤ã®å ´åã 1 ã«é常ã«è¿ããªãã精度ã失ããããã¨ã«æ³¨æãã¦ãã ããããã®å ´åã代ããã« Math.expm1
ã使ç¨ããã¨ãããé«ç²¾åº¦ãªå°æ°é¨åãæ±ãããã¨ãã§ãã¾ãã
Math.exp(-Infinity); // 0
Math.exp(-1); // 0.36787944117144233
Math.exp(0); // 1
Math.exp(1); // 2.718281828459045
Math.exp(Infinity); // ç¡é大
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4