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 г..
Метод Math.atanh() возвращает гиперболический арктангенс числа, то есть
∀x∊(-1,1),Math.atanh(x)=arctanh(x)= уникальный yтакой, чтоtanh(y)=x\forall x \in \left( -1, 1 \right), \mathtt{\operatorname{Math.atanh}(x)} = \operatorname{arctanh}(x) = \text{ уникальный } ; y ; \text{такой, что} ; \tanh(y) = xЧисло.
Поскольку метод atanh() является статическим методом объекта Math, вы всегда должны использовать его как Math.atanh(), а не пытаться вызывать метод на созданном экземпляре объекта Math (поскольку объект Math не является конструктором).
Для значений, меньших -1 или больших 1, метод Math.atanh() возвращает NaN.
Для |x|<1\left|x\right| < 1, мы имеем artanh(x)=12ln(1+x1-x)\operatorname {artanh} (x) = \frac{1}{2}\ln \left( \frac{1 + x}{1 - x} \right), так что этот метод может эмулироваться следующим образом:
| ECMAScript® 2027 Language Specification # sec-math.atanh |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 20 янв. 2024 г. 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.