PHP acosh() Function

In this chapter you will learn:

  1. Definition for PHP acosh() Function
  2. Syntax for PHP acosh() Function
  3. Parameter for PHP acosh() Function
  4. Return for PHP acosh() Function
  5. Example - calculate the inverse hyperbolic cosine

Definition

The acosh() function returns the inverse hyperbolic cosine of a number.

Syntax

PHP acosh() Function has the following syntax.

acosh(number);

Parameter

ParameterDescription
numberRequired. Specifies a number

Return

PHP acosh() function returns the inverse hyperbolik cosine of number.

Example

Return the inverse hyperbolic cosine of different numbers:


<?php//from  j  av  a2 s . c  om
echo(acosh(7) . "\n");
echo(acosh(56) . "\n");
echo(acosh(2.45));
?>

The code above generates the following result.

Next chapter...

What you will learn in the next chapter:

  1. Definition for PHP asin() Function
  2. Syntax for PHP asin() Function
  3. Parameter for PHP asin() Function
  4. Return for PHP asin() Function
  5. Example - calculate the arc sine value