Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Math.atan() 정적 메서드는 숫자의 역탄젠트(라디안 단위)를 반환합니다.
𝙼𝚊𝚝𝚑.𝚊𝚝𝚊𝚗(𝚡)=arctan(x)=the unique y∊[−π2,π2] such that tan(y)=x\mathtt{\operatorname{Math.atan}(x)} = \arctan(x) = \text{the unique } y \in \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] \text{ such that } \tan(y) = x숫자
x의 역 탄젠트 (-π2-\frac{\pi}{2} 이상 π2\frac{\pi}{2} 이하의 라디안 단위의 각도). 만약 x가 Infinity라면 π2\frac{\pi}{2}를 반환합니다. 만약 x가 -Infinity라면 -π2-\frac{\pi}{2}를 반환합니다.
atan()은 Math의 정적 메서드이므로, 생성한 Math 객체의 메서드가 아니라 항상 Math.atan()으로 사용합니다(Math는 생성자가 아닙니다).
theta 함수를 피하고 대신 범위가 더 넓고(-π와 π 사이) x가 0일 경우 NaN을 출력하지 않는 Math.atan2()를 사용하는 것이 좋습니다.
| ECMAScript® 2027 Language Specification # sec-math.atan |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.