Home >>PHP Math Functions >PHP acosh() Function
PHP acosh() function is used to find the inverse hyperbolic cosine value of a given input number passed to it as an argument. It only accepts a single parameter $number, which is the number whose inverse hyperbolic cosine value to be found. The value of this $number parameter must be in radians unit. It returns a floating point number as output which is the inverse hyperbolic cosine value of the input number passed to it.
Syntax:
acosh($number);
Parameter | Description |
---|---|
number | This is a required parameter. This parameter defines the given input number. |
Here is an example of acosh() Function in PHP:
<html> <body> <?php echo acosh(9)."<br>"; echo acosh(34)."<br>"; ?> </body> </html>
Here is an another example of acosh() Function in PHP:
<html> <body> <?php echo acosh(-7)."<br>"; // negative value is not accepted echo acosh(7)."<br>"; echo acosh(4.5); ?> </body> </html>