PHP atanh( ) Function Last Updated : 22 Jun, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 <?php echo (atanh(0.50)); ?> Output: 0.54930614433405 Passing -0.50 as a parameter: PHP <?php echo (atanh(-0.50)); ?> Output: -0.54930614433405 Passing 1 as a parameter: PHP <?php echo (atanh(1)); ?> Output: 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 <?php echo (atanh(M_PI_4)); ?> Output: 1.0593061708232 Reference: https://www.php.net/manual/en/function.atanh.php Comment More infoAdvertise with us Next Article PHP array() Function S Shubrodeep Banerjee Follow Improve Article Tags : Misc Web Technologies PHP PHP-math PHP-function +1 More Practice Tags : Misc Similar Reads PHP asinh( ) 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 1 min read PHP each() Function The each() function is an inbuilt function in PHP and is used to get the current element key-value pair of the given array to which the internal pointer is currently pointing. After returning the key and value of the current element the internal pointer is incremented by one in the array. Note: You 2 min read PHP acosh( ) 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 1 min read PHP array() Function The array() function is an inbuilt function in PHP which is used to create an array. There are three types of array in PHP: Indexed array: The array which contains numeric index. Syntax: array( val1, val2, val3, ... ) Associative array: The array which contains name as keys. Syntax: array( key=>v 2 min read PHP | fstat( ) Function The fstat() function in PHP is an inbuilt function which is used to return information about an open file. The file name is sent as a parameter to the fstat() function and it returns an array with the following elements : Numeric Associative Description 0 dev Device number 1 ino inode number* 2 mode 3 min read PHP end() Function The end() function is an inbuilt function in PHP and is used to find the last element of the given array. The end() function changes the internal pointer of an array to point to the last element and returns the value of the last element.Syntax:end($array)Parameters:This function accepts a single par 2 min read Like