atanh():inverse hyperbolic tangent

Calculate inverse hyperbolic tangent

atanh() returns the inverse hyperbolic tangent. For a finite real result, the input should be greater than -1 and less than 1.

$value = atanh(0.5);
echo $value;

The examples below build from the basic call to practical variations and edge cases.

<?Php
echo atanh(5); // Output NAN
echo "<br>";
echo atanh(1.5); // Output NAN
echo "<br>";
echo atanh(1); // Output INF
echo "<br>";
echo atanh(0.9); // Output 1.4722194895832
echo "<br>";
echo atanh(0); // Output 0
echo "<br>";
echo atanh(-0.5); // Output -0.54930614433405
echo "<br>";
echo atanh(-1); // Output -INF
echo "<br>";
echo atanh(-1.5); // Output NAN
echo "<br>";
echo atanh(-2.4); // Output NAN
?>
atanh(float $num): float;
For a finite real result, the input must be greater than -1 and less than 1. Inputs of ±1 produce infinite values; inputs outside that interval produce NAN.

DEMO of atanh()

Questions

TANH() function
Math Functions


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer