This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Math.sin()
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.sin() 함수는 숫자의 사인값을 반환합니다.
In this article
시도해 보기
function getCircleY(radians, radius) { return Math.sin(radians) * radius;}console.log(getCircleY(1, 10));// Expected output: 8.414709848078965console.log(getCircleY(2, 10));// Expected output: 9.092974268256818console.log(getCircleY(Math.PI, 10));// Expected output: 1.2246467991473533e-15Syntax
js
Math.sin(x);파라미터
x숫자 (라디안으로 주어짐).
반환 값
주어진 숫자의 사인 값
설명
Math.sin() 메소드는 라디안으로 주어진 각도의 사인 값인 -1과 1 사이의 수를 반환합니다.
sin() 은Math의 스태틱 메소드이기 때문에,Math 오브젝트 의 메소드로 사용하지 말고 항상Math.sin()로 사용해야합니다. (Math 는 생성자가 아닙니다).
예
>UsingMath.sin()
js
Math.sin(0); // 0Math.sin(1); // 0.8414709848078965Math.sin(Math.PI / 2); // 1명세서
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-math.sin> |