PHP | atanh( ) Function
In mathematics, the inverse hyperbolic functions are the inverse functions of the hyperbolic functions. For a given value of a hyperbolic function, the corresponding inverse hyperbolic function provides the corresponding hyperbolic angle. PHP provides us with builtin functions for inverse hyperbolic calculations. The atanh() function in PHP is used to find the inverse hyperbolic tangent of a number passed to it as an argument.
Syntax:
float atanh($value)
Parameters: This function accepts a single parameter $value. It is the number whose inverse hyperbolic tangent value you want to find. The value of this parameter must be in radians.
Return Value: It returns a floating point number which is the inverse hyperbolic tangent value of a number passed to it as argument.
Examples:
Input : atanh(0.50) Output : 0.54930614433405 Input : atanh(-0.50) Output : -0.54930614433405 Input : atanh(1) Output : INF Input : atanh(M_PI_4) Output : 1.0593061708232
Below programs, taking different values of the parameter $value are used to illustrate the atanh() function in PHP:
- Passing 0.50 as a parameter:
<?php
echo
(
atanh
(0.50));
?>
chevron_rightfilter_noneOutput:
0.54930614433405
- Passing -0.50 as a parameter:
<?php
echo
(
atanh
(-0.50));
?>
chevron_rightfilter_noneOutput:
-0.54930614433405
- Passing 1 as a parameter:
<?php
echo
(
atanh
(1));
?>
chevron_rightfilter_noneOutput:
INF
- When (M_PI_4) is passed as a parameter, M_PI_4 is a constant in PHP and it’s value is 0.78539816339744830962:
<?php
echo
(
atanh
(M_PI_4));
?>
chevron_rightfilter_noneOutput:
1.0593061708232
Reference:
http://php.net/manual/en/function.atanh.php
Recommended Posts:
- How to call a function that return another function in JavaScript ?
- How to get the function name from within that function using JavaScript ?
- How to get the function name inside a function in PHP ?
- p5.js | second() function
- D3.js | d3.map.set() Function
- D3.js | d3.rgb() Function
- PHP | sin( ) Function
- PHP | cos( ) Function
- PHP | tan( ) Function
- PHP | end() Function
- PHP | Ds\Map xor() Function
- PHP | each() Function
- p5.js | max() function
- CSS | hsl() Function
- PHP | Ds\Set contains() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.