JavaScript atanh

The JavaScript atanh function is a Math function that calculates the trigonometry hyperbolic Arc Tangent for the specified expression. Arc Tangent is also called inverse hyperbolic Tangent. The syntax of the atanh Function is:


JavaScript atanh Example

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

<!DOCTYPE html>
    <title> JavaScriptATANHFunction </title>
  <h1> JavaScriptATANHFunction </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>
    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);
JavaScript ATANH Example

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.