A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh below:

Math.asinh() - JavaScript | MDN

Math.asinh()

Baseline Widely available

Math.asinh() 靜態方法回傳數字的反雙曲正弦值。也就是說,

𝙼𝚊𝚝𝚑.𝚊𝚜𝚒𝚗𝚑 ( 𝚡 ) = arsinh ( x ) = the unique  y  such that  sinh ( y ) = x = ln ( x + x2 + 1 ) \begin{aligned}\mathtt{\operatorname{Math.asinh}(x)} &= \operatorname{arsinh}(x) = \text{the unique } y \text{ such that } \sinh(y) = x \\&= \ln\left(x + \sqrt{x^2 + 1}\right)\end{aligned} 嘗試一下
console.log(Math.asinh(1));
// 預期輸出:0.881373587019543

console.log(Math.asinh(0));
// 預期輸出:0

console.log(Math.asinh(-1));
// 預期輸出:-0.881373587019543

console.log(Math.asinh(2));
// 預期輸出:1.4436354751788103
語法 參數 回傳值

x 的反雙曲正弦值。

描述

由於 asinh() 是 Math 的靜態方法,你必須使用 Math.asinh() 來呼叫它,而非呼叫你建立的 Math 物件的方法(Math 並非建構子)。

範例 使用 Math.asinh()
Math.asinh(-Infinity); // -Infinity
Math.asinh(-1); // -0.881373587019543
Math.asinh(-0); // -0
Math.asinh(0); // 0
Math.asinh(1); // 0.881373587019543
Math.asinh(Infinity); // Infinity
規範 瀏覽器相容性 參見

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