A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/ko/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh below:

Math.atanh() - JavaScript | MDN

Math.atanh()

Baseline Widely available

Math.atanh() 정적 메서드는 숫자의 역쌍곡 탄젠트를 반환합니다. 이는 다음과 같습니다.

∀ x ∊ ( − 1 , 1 ) , 𝙼𝚊𝚝𝚑.𝚊𝚝𝚊𝚗𝚑 ( 𝚡 ) = artanh ( x ) = the unique  y  such that  tanh ( y ) = x = 1 2 ln ( 1 + x 1 − x ) \begin{aligned}\forall x \in ({-1}, 1),\;\mathtt{\operatorname{Math.atanh}(x)} &= \operatorname{artanh}(x) = \text{the unique } y \text{ such that } \tanh(y) = x \\&= \frac{1}{2}\,\ln\left(\frac{1+x}{1-x}\right)\end{aligned} 시도해 보기
console.log(Math.atanh(-1));
// Expected output: -Infinity

console.log(Math.atanh(0));
// Expected output: 0

console.log(Math.atanh(0.5));
// Expected output: 0.549306144334055 (approximately)

console.log(Math.atanh(1));
// Expected output: Infinity
구문 매개변수
x

-1 이상 1 이하 숫자

반환 값

x의 역 쌍곡 탄젠트. x가 1이라면 Infinity를 반환합니다. x가 -1 이라면 -Infinity을 반환합니다. x가 -1보다 작거나 1보다 크다면 NaN을 반환합니다.

설명

Math의 정적 메서드이기 때문에 atanh()는 생성한 Math 객체(Math는 생성자가 아닙니다)의 메서드를 사용하기보다는 언제나 Math.atanh()를 사용하세요.

예제 Math.atanh() 사용하기
Math.atanh(-2); // NaN
Math.atanh(-1); // -Infinity
Math.atanh(-0); // -0
Math.atanh(0); // 0
Math.atanh(0.5); // 0.5493061443340548
Math.atanh(1); // Infinity
Math.atanh(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