Baseline Widely available
Math.cbrt()
í¨ìë 주ì´ì§ ìì ì¸ì 곱근ì ë°íí©ëë¤. ì¦,
주ì´ì§ ìì ì¸ì 곱근.
ì¤ëªcbrt()
ë Math
ì ì ì ë©ìëì´ë¯ë¡, ì¬ì©ìê° ìì±í Math
ê°ì²´ì ë©ìëë¡ í¸ì¶í ì ìê³ íì Math.cbrt()
를 ì¬ì©í´ì¼ í©ëë¤. (Math
ë ìì±ìê° ìëëë¤)
Math.cbrt()
ì¬ì©í기
Math.cbrt(NaN); // NaN
Math.cbrt(-1); // -1
Math.cbrt(-0); // -0
Math.cbrt(-Infinity); // -Infinity
Math.cbrt(0); // 0
Math.cbrt(1); // 1
Math.cbrt(Infinity); // Infinity
Math.cbrt(null); // 0
Math.cbrt(2); // 1.2599210498948734
í´ë¦¬í
모ë x ⥠0 x \geq 0 ìì x 3 = x 1 / 3 \sqrt[3]{x} = x^{1/3} ì´ë¯ë¡, Math.cbrt()
ë ë¤ì í¨ìë¡ í´ë¦¬íí ì ììµëë¤.
if (!Math.cbrt) {
Math.cbrt = (function (pow) {
return function cbrt() {
// ensure negative numbers remain negative:
return x < 0 ? -pow(-x, 1 / 3) : pow(x, 1 / 3);
};
})(Math.pow); // localize Math.pow to increase efficiency
}
ëª
ì¸ ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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