atanh():inverse hyperbolic tangent
PHP
Math
<?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 X);
X is the input value
atanh returns an EDOM error if input absolute value exceeds 1.0
Questions
What does the `atanh()` function in PHP do?
What is the purpose of the `atanh()` function in PHP?
How is the `atanh()` function used to calculate the inverse hyperbolic tangent of a number?
What is the range of values returned by the `atanh()` function in PHP?
Can the `atanh()` function be used with both positive and negative numbers?
What happens if you pass an invalid argument to the `atanh()` function?
How can you use the `atanh()` function to calculate the hyperbolic tangent given the value of the inverse hyperbolic tangent?
Are there any alternative ways to calculate the inverse hyperbolic tangent in PHP besides using the `atanh()` function?
Can the `atanh()` function return a complex number?
What type of value does the `atanh()` function return: integer, float, or something else?
MIN() function →
← Math Functions
Author & Instructor at
plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery,
and web development at plus2net. The tutorials focus on clear explanations, working
examples, and code that readers can test and adapt while learning.
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com