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
廣告
資料結構
網路
關係型資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 語言
C++
C#
MongoDB
MySQL
JavaScript
PHP