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/acosh below:

Math.acosh() - JavaScript | MDN

Math.acosh()

Baseline Widely available

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

∀ x ≥ 1 , 𝙼𝚊𝚝𝚑.𝚊𝚌𝚘𝚜𝚑 ( 𝚡 ) = arcosh ( x ) = the unique  y ≥ 0  such that  cosh ( y ) = x = ln ( x + x2 − 1 ) \begin{aligned}\forall x \geq 1,\;\mathtt{\operatorname{Math.acosh}(x)}} &= \operatorname{arcosh}(x) = \text{the unique } y \geq 0 \text{ such that } \cosh(y) = x\\&= \ln\left(x + \sqrt{x^2 - 1}\right)\end{aligned} Probieren Sie es aus
console.log(Math.acosh(0.999999999999));
// Expected output: NaN

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

console.log(Math.acosh(2));
// Expected output: 1.3169578969248166

console.log(Math.acosh(2.5));
// Expected output: 1.566799236972411
Syntax Parameter
x

Eine Zahl größer oder gleich 1.

Rückgabewert

Der inverse hyperbolische Kosinus von x. Wenn x kleiner als 1 ist, wird NaN zurückgegeben.

Beschreibung

Da acosh() eine statische Methode von Math ist, wird sie immer als Math.acosh() verwendet und nicht als Methode eines selbst erstellten Math-Objekts (Math ist kein Konstruktor).

Beispiele Verwendung von Math.acosh()
Math.acosh(0); // NaN
Math.acosh(1); // 0
Math.acosh(2); // 1.3169578969248166
Math.acosh(Infinity); // Infinity
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