English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JavaScript Math.atanh() 메서드

 JavaScript Math 객체

Math.atanh()메서드는 수의 히피반비사인을 반환합니다。

전달된 매개변수 값이-1까지1범위 밖에 있으면, 이 메서드는 NaN을 반환합니다。

이면, 이 메서드는1이면, 이 메서드는 Infinity를 반환합니다; 매개변수가-1이면, 이 메서드는-Infinity.

atanh()는 Math의 스태틱 메서드이므로 항상 다음과 같이 사용하십시오Math.atanh()이고, Math 객체를 생성하는 메서드로 사용되지 않습니다.

문법:

Math.atanh(x)
Math.atanh(0.7);
테스트를 보자‹/›

브라우저 호환성

모든 브라우저에서 Math.atanh() 메서드는 완전히 지원됩니다:

메서드
Math.atanh()

매개변수 값

매개변수설명
x수치

기술 세부 사항

반환 값:주어진 수의 히피반비사인
JavaScript 버전:ECMAScript 1

더 많은 예제

빠른1또는 작은-1의 값이면, NaN을 반환합니다:

Math.atanh(-2);// NaN
Math.atanh(-1);// -Infinity
Math.atanh(0); // 0
Math.atanh(0.5);   // 0.5493061443340548
Math.atanh(1); // Infinity
Math.atanh(2); // NaN
테스트를 보자‹/›

 JavaScript Math 객체