PHP atanh()
Published Aug 9, 2023
Contribute to Docs
The atanh() calculates the inverse hyperbolic tangent of a given number and returns a float.
Syntax
atanh($inputValue)
- The function
atanh()only takes one parameter,$inputValue, and returns a floating point number. The passed value must be a numerical value between -1 and 1 (not inclusive).
Example
The example below demonstrates a basic implementation of atanh().
<?phpecho (atanh(0.5));?>
The result will be:
0.54930614433405
Codebyte Example
The example below is runnable and demonstrates how to use the function atanh() with a variable, to store and display the result.
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn PHP on Codecademy
- Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
- Includes 6 Courses
- With Professional Certification
- Beginner Friendly.75 hours