To find the hyperbolic cosine of a number, we can use the php **cosh()** function.

`cosh(x)`

In php, we can easily use trigonometric functions from the collection of php math functions. These php math functions allow us to perform trigonometry easily and in addition to the standard trigonometry, we have access to the hyperbolic trigonometry functions.

To find the hyperbolic cosine of a number, we can use the php **cosh()** function.

Below is the php syntax to find the hyperbolic cosine of a number.

`cosh(x)`

The input to the **cosh()** function must be a float. The return value will be a float greater than or equal to 1.

```
echo cosh(100); // 1.3440585709080678e+43
echo cosh(0); // 1.0
echo cosh(-50); // 2.592352764293536e+21
```

## Finding the Inverse Hyperbolic Cosine of a Number in php

With php, we can also find the inverses of the common trigonometric functions. The acosh() function allows us to find the inverse of the hyperbolic cosine of a number.

Below, we show that if we pass a number to **cosh()** and then call the php**acosh()** function, we get back the same number.

`echo acosh(cosh(100)) // 100.0`

Hopefully, this article has been beneficial for you to understand how to use the math **cosh()** function in php to find the hyperbolic cosine of a number.

## Leave a Reply