PHP acosh()

ElMurimi's avatar
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.

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours

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().

Code
Output

All contributors

Contribute to Docs

Learn PHP on Codecademy

  • Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
    • Includes 6 Courses
    • With Professional Certification
    • Beginner Friendly.
      75 hours