-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Math.asin() 추가
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
files/ko/web/javascript/reference/global_objects/math/asin/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: Math.asin() | ||
slug: Web/JavaScript/Reference/Global_Objects/Math/asin | ||
l10n: | ||
sourceCommit: fcd80ee4c8477b6f73553bfada841781cf74cf46 | ||
--- | ||
|
||
{{JSRef}} | ||
|
||
**`Math.asin()`** 정적 메서드는 숫자의 역사인(라디안 단위)을 반환합니다. | ||
|
||
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>∀</mo><mi>x</mi><mo>∊</mo><mo stretchy="false">[</mo><mrow><mo>−</mo><mn>1</mn></mrow><mo>,</mo><mn>1</mn><mo stretchy="false">]</mo><mo>,</mo><mspace width="0.2777777777777778em"></mspace><mrow><mo lspace="0em" rspace="0.16666666666666666em">𝙼𝚊𝚝𝚑.𝚊𝚜𝚒𝚗</mo><mo stretchy="false">(</mo><mi>𝚡</mi><mo stretchy="false">)</mo></mrow><mo>=</mo><mo lspace="0em" rspace="0em">arcsin</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext>the unique </mtext><mi>y</mi><mo>∊</mo><mrow><mo>[</mo><mrow><mo>−</mo><mfrac><mi>π</mi><mn>2</mn></mfrac><mo>,</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><mo>]</mo></mrow><mtext> such that </mtext><mo lspace="0em" rspace="0em">sin</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\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</annotation></semantics></math> | ||
|
||
{{EmbedInteractiveExample("pages/js/math-asin.html")}} | ||
|
||
## 구문 | ||
|
||
```js-nolint | ||
Math.asin(x) | ||
``` | ||
|
||
### 매개 변수 | ||
|
||
- `x` | ||
- : 각도의 사인 값을 나타내는 -1 이상 1 이하의 숫자. | ||
|
||
### 반환 값 | ||
|
||
`x`의 역사인(라디안 단위의 각도가 <math><semantics><mrow><mo>-</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><annotation encoding="TeX">-\frac{\pi}{2}</annotation></semantics></math> 이상 <math><semantics><mfrac><mi>π</mi><mn>2</mn></mfrac><annotation encoding="TeX">\frac{\pi}{2}</annotation></semantics></math> 이하). | ||
만약 `x`가 -1 미만이거나 1 초과인 경우 {{jsxref("NaN")}}을 반환합니다. | ||
|
||
## 설명 | ||
|
||
`asin()`은 `Math`의 정적 메서드이므로, 생성한 `Math` 객체의 메서드가 아니라 항상 `Math.ataasinn()`으로 사용합니다(`Math`는 생성자가 아닙니다). | ||
|
||
## 예제 | ||
|
||
### Math.asin() 사용하기 | ||
|
||
```js | ||
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 | ||
``` | ||
|
||
## 명세서 | ||
|
||
{{Specifications}} | ||
|
||
## 브라우저 호환성 | ||
|
||
{{Compat}} | ||
|
||
## 같이 보기 | ||
|
||
- {{jsxref("Math.acos()")}} | ||
- {{jsxref("Math.atan()")}} | ||
- {{jsxref("Math.atan2()")}} | ||
- {{jsxref("Math.cos()")}} | ||
- {{jsxref("Math.sin()")}} | ||
- {{jsxref("Math.tan()")}} |