JavaScript acosh

JavaScript acosh 函数是一个 Math 函数,用于计算指定表达式的双曲反余弦值。Acosh 也称为反双曲余弦函数,其语法如下所示。

Math.acosh(number);

JavaScript ACOSH 函数示例

我们计算不同数据类型的 JavaScript 双曲反余弦值并显示输出。

<!DOCTYPE html>
<html>
<head>
    <title> JavaScriptACOSHFunction </title>
</head>
<body>
  <h1> JavaScriptACOSHFunction </h1>
  <p id = "Pos"></p>
  <p id = "Neg"></p>
  <p id = "Dec"></p>
  <p id = "Neg_Dec"></p>
  <p id = "Str"></p>
  <p id = "Exp"></p>
  <p id = "Null"></p>
  <p id = "Multi"></p>
  <script>
    document.getElementById("Pos").innerHTML = Math.acosh(10);
    document.getElementById("Neg").innerHTML = Math.acosh(-20);
    document.getElementById("Dec").innerHTML = Math.acosh(14.45);
    document.getElementById("Neg_Dec").innerHTML = Math.acosh(-12.75);
    document.getElementById("Str").innerHTML = Math.acosh("JavaScript");
    document.getElementById("Null").innerHTML = Math.acosh(null);
    document.getElementById("Multi").innerHTML = Math.acosh(25 + 55 - 37);
  </script>
</body>
</html>
ACOSH Function Example