acosh():inverse hyperbolic cosine

Calculate inverse hyperbolic cosine

acosh() returns the inverse hyperbolic cosine of a value. Real-valued input should be 1 or greater.

echo acosh(1); // 0

The examples below build from the basic call to practical variations and edge cases.

<?Php
echo acosh(6); // Output 2.4778887302885
echo "<br>";
echo acosh(2.5); // Output 1.5667992369724
echo "<br>";
echo acosh(0); // Output NAN
echo "<br>";
echo acosh(2); // Output 1.3169578969248
echo "<br>";
echo acosh(-2.5); // Output NAN
echo "<br>";
echo acosh(-4); // Output NAN
?>
Syntax
acosh(float $num): float;
The input must be 1 or greater for a finite real result. Values below 1 return NAN.

DEMO of acosh()

DEMO of acosh()

Example 2: Calculating Inverse Hyperbolic Cosine for a Larger Value

The acosh() function can be used to find the inverse hyperbolic cosine for values greater than or equal to 1:

$value = 10;
$result = acosh($value);
echo "The acosh of $value is: " . $result; 
// Outputs: The acosh of 10 is: 2.99322284612638

Example 3: Using acosh() in Mathematical Operations

You can use acosh() in more complex mathematical expressions:

$value = 20;
$result = pow(acosh($value), 2) + sqrt($value);
echo $result;

Questions

COSH() function
Math Functions


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer