A RetroSearch Logo

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

Search Query:

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

Math.atanh() - JavaScript | MDN

Math.atanh()

Baseline Widely available

Die statische Methode Math.atanh() gibt den inversen hyperbolischen Tangens einer Zahl zurück. Das heißt,

∀ x ∊ ( − 1 , 1 ) , 𝙼𝚊𝚝𝚑.𝚊𝚝𝚊𝚗𝚑 ( 𝚡 ) = artanh ( x ) = das eindeutige  y  so dass  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{das eindeutige } y \text{ so dass } \tanh(y) = x \\&= \frac{1}{2}\,\ln\left(\frac{1+x}{1-x}\right)\end{aligned} Probieren Sie es aus
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
Syntax Parameter
x

Eine Zahl zwischen -1 und 1, einschließlich.

Rückgabewert

Der inverse hyperbolische Tangens von x. Wenn x 1 ist, wird Infinity zurückgegeben. Wenn x -1 ist, wird -Infinity zurückgegeben. Wenn x kleiner als -1 oder größer als 1 ist, wird NaN zurückgegeben.

Beschreibung

Da atanh() eine statische Methode von Math ist, verwenden Sie sie immer als Math.atanh() und nicht als Methode eines von Ihnen erstellten Math-Objekts (Math ist kein Konstruktor).

Beispiele Verwendung von 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
Spezifikationen Browser-Kompatibilität Siehe auch MDN-Feedback-Box War diese Übersetzung hilfreich?

Diese Seite wurde automatisch aus dem Englischen übersetzt.


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