C Math acosh() Function
Example
Return the inverse hyperbolic cosine of different numbers:
printf("%f", acosh(7));
printf("%f", acosh(56));
printf("%f", acosh(2.45));
Try it Yourself »
Definition and Usage
The acosh()
function returns the inverse hyperbolic cosine of a number.
The acosh()
function is defined in the <math.h>
header file.
Syntax
One of the following:
acosh(double number);
Parameter Values
Parameter | Description |
---|---|
number |
Required. A number to find the inverse hyperbolic cosine of. If the value is less than 1, the function returns NaN (Not a Number). |
Technical Details
Returns: |
A double value representing the inverse hyperbolic cosine of a number.
|
---|