JavaScript ATANH

The JavaScript ATanh function is a Math function which calculate the trigonometry hyperbolic Arc Tangent for the specified expression. Arc Tangent is also called as inverse hyperbolic Tangent. The syntax of the JavaScript ATanh Function is:

Math.atanh(number);

JavaScript ATanh Function Example

In this ATANH example, we are going to find the JavaScript hyperbolic Arc Tangent values of different data types and display the output

<!DOCTYPE html>
<html>
<head>
    <title> JavaScript ATANH Function </title>
</head>
<body>
  <h1> JavaScript ATANH Function </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>
  <p id = "Out"></p>
  <script>
    document.getElementById("Pos").innerHTML = Math.atanh(1);
    document.getElementById("Neg").innerHTML = Math.atanh(-1);
    document.getElementById("Dec").innerHTML = Math.atanh(0.45);
    document.getElementById("Neg_Dec").innerHTML = Math.atanh(-0.75);
    document.getElementById("Str").innerHTML = Math.atanh("JavaScript");
    document.getElementById("Null").innerHTML = Math.atanh(null);
    document.getElementById("Multi").innerHTML = Math.atanh(0.25 + 0.55 - 0.77);
    document.getElementById("Out").innerHTML = Math.atanh(25);
  </script>
</body>
</html>
JavaScript ATANH Function