acosh()

Published Jul 29, 2023
Contribute to Docs

The built-in math function acosh() determines the inverse hyperbolic cosine of a number, in other words the value whose hyperbolic cosine is the input number. The output is a floating point number in radians.

Syntax

$result = acosh($number);

Where $number is the value that the inverse hyperbolic cosine will be based on.

Example

<?php
echo(acosh(10));
?>

This will result in the following output:

2.9932228461264

Codebyte Example

The following code is runnable and demonstrates the use of acosh().

us
Visit us
code
Hide code
Code
Output
Hide output
Hide output
Loading...

All contributors

Looking to contribute?

Learn PHP on Codecademy