JavaScript 中的 Math.asinh() 函式


Math 物件的 asinh() 函式接受一個數字並返回其以弧度為單位的雙曲反正弦值。若想將結果值轉換成角度,需將結果值乘以 180 並將其除以 3.14159(π 值)。

語法

其語法如下

Math.asinh(0.5)

示例

 現場演示

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Math.asinh(90);
      document.write("Hyperbolic arcsine value: "+result);
      document.write("<br>");
      document.write("Hyperbolic arcsine value in degrees: "+result*180/Math.PI);
   </script>
</body>
</html>

輸出

Hyperbolic arcsine value: 5.192987713658941
Hyperbolic arcsine value in degrees: 297.53627905594817

更新日期:25-6-2020

44 瀏覽量

開啟您的職業生涯

透過完成課程獲得認證

開始學習
廣告
© . All rights reserved.