A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Math/asin below:

Math.asin() - JavaScript | MDN

Math.asin()

Baseline Widely available

Math.asin() 정적 메서드는 숫자의 역사인(라디안 단위)을 반환합니다.

∀ x ∊ [ − 1 , 1 ] , 𝙼𝚊𝚝𝚑.𝚊𝚜𝚒𝚗 ( 𝚡 ) = arcsin ( x ) = the unique  y ∊ [ − π 2 , π 2 ]  such that  sin ( y ) = x \forall x \in [{-1}, 1],;\mathtt{\operatorname{Math.asin}(x)} = \arcsin(x) = \text{the unique } y \in \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] \text{ such that } \sin(y) = x 시도해 보기
// Calculates angle of a right-angle triangle in radians
function calcAngle(opposite, hypotenuse) {
  return Math.asin(opposite / hypotenuse);
}

console.log(calcAngle(6, 10));
// Expected output: 0.6435011087932844

console.log(calcAngle(5, 3));
// Expected output: NaN
구문 매개 변수
x

각도의 사인 값을 나타내는 -1 이상 1 이하의 숫자.

반환 값

x의 역사인(라디안 단위의 각도가 - π 2 -\frac{\pi}{2} 이상 π 2 \frac{\pi}{2} 이하). 만약 x가 -1 미만이거나 1 초과인 경우 NaN을 반환합니다.

설명

asin()은 Math의 정적 메서드이므로, 생성한 Math 객체의 메서드가 아니라 항상 Math.ataasinn()으로 사용합니다(Math는 생성자가 아닙니다).

예제 Math.asin() 사용하기
Math.asin(-2); // NaN
Math.asin(-1); // -1.5707963267948966 (-π/2)
Math.asin(-0); // -0
Math.asin(0); // 0
Math.asin(0.5); // 0.5235987755982989 (π/6)
Math.asin(1); // 1.5707963267948966 (π/2)
Math.asin(2); // NaN
명세서 브라우저 호환성 같이 보기

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