Math.acosh()
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2015å¹´7æ.
Math.acosh() ã¯éçã¡ã½ããã§ãæ°å¤ã®åæ²ç·ä½å¼¦ï¼ãã¤ãã¼ããªãã¯ã¢ã¼ã¯ã³ãµã¤ã³ï¼ãè¿ãã¾ãã
試ãã¦ã¿ã¾ããã
console.log(Math.acosh(0.999999999999));
// äºæ³ãããçµæ: NaN
console.log(Math.acosh(1));
// äºæ³ãããçµæ: 0
console.log(Math.acosh(2));
// äºæ³ãããçµæ: 1.3169578969248166
console.log(Math.acosh(2.5));
// äºæ³ãããçµæ: 1.566799236972411
æ§æ
js
Math.acosh(x)
弿°
x-
1 以ä¸ã®æ°å¤ã§ãã
è¿å¤
ä¸ããããæ°å¤ã®åæ²ç·ä½å¼¦ (ãã¤ãã¼ããªãã¯ã¢ã¼ã¯ã³ãµã¤ã³) ã§ããæ°å¤ã 1 æªæºã§ããã°ã NaN ã«ãªãã¾ãã
解説
acosh() 㯠Math ã®éçã¡ã½ããã§ããããã使ãã Math ãªãã¸ã§ã¯ãã®ã¡ã½ããã¨ãã¦ã§ã¯ãªãã常㫠Math.acosh() ã¨ãã¦ä½¿ç¨ããããã«ãã¦ãã ãã (Math ã¯ã³ã³ã¹ãã©ã¯ã¿ã¼ã§ã¯ããã¾ãã)ã
ä¾
>Math.acosh() ã®ä½¿ç¨
js
Math.acosh(0); // NaN
Math.acosh(1); // 0
Math.acosh(2); // 1.3169578969248166
Math.acosh(Infinity); // ç¡é大
仿§æ¸
| Specification |
|---|
| ECMAScript® 2027 Language Specification> # sec-math.acosh> |