Baseline Widely available
Math.sin()
í¨ìë ì«ìì ì¬ì¸ê°ì ë°íí©ëë¤.
function getCircleY(radians, radius) {
return Math.sin(radians) * radius;
}
console.log(getCircleY(1, 10));
// Expected output: 8.414709848078965
console.log(getCircleY(2, 10));
// Expected output: 9.092974268256818
console.log(getCircleY(Math.PI, 10));
// Expected output: 1.2246467991473533e-15
Syntax íë¼ë¯¸í°
x
ì«ì (ë¼ëìì¼ë¡ 주ì´ì§).
주ì´ì§ ì«ìì ì¬ì¸ ê°
ì¤ëªMath.sin()
ë©ìëë ë¼ëìì¼ë¡ 주ì´ì§ ê°ëì ì¬ì¸ ê°ì¸ -1ê³¼ 1 ì¬ì´ì ì를 ë°íí©ëë¤.
sin()
ì Math
ì ì¤íí± ë©ìëì´ê¸° ë문ì, Math
ì¤ë¸ì í¸ ì ë©ìëë¡ ì¬ì©íì§ ë§ê³ íì Math.sin()
ë¡ ì¬ì©í´ì¼í©ëë¤. (Math
ë ìì±ìê° ìëëë¤).
Math.sin()
Math.sin(0); // 0
Math.sin(1); // 0.8414709848078965
Math.sin(Math.PI / 2); // 1
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± í¨ê» 보기
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