# C asinh()

The asinh() function defined in the math.h header file. It helps to return the arc hyperbolic sine value of the given number in radians. The arc hyperbolic sine means inverse hyperbolic sine value.

``````
double asinh (double x); #where x should be in double
```
```

Also, two functions asinhf() and asinhl() were used with type float and long double respectively.

``````
float asinhf(float x);
long double asinhl(long double x);
```
```

## asinh() Parameters:

The asinh() function takes a single parameter in the range of any value from negative to positive. Using cast operator we can explicitly convert the type to double to find the arc hyperbolic sine of type int, float, or long double.

Parameter Description Required / Optional
double value Any double value from negative to positive Required

## asinh() Return Value

The return value of asinh() function is of type double in radians.

Input Return Value
any value from negative to positive double value in radians

## Examples of asinh()

### Example 1: Working of asinh() function in C?

``````
#include <stdio.h>
#include <math.h>
#define PI 3.141592654
int main()
{
float n = 8.0;
double output;
output = asinh(n);

printf("The Inverse of sinh(%.2f) = %.2f in radians", n, output);
output=(output*180)/PI;
printf("\nThe Inverse of sinh(%.2f) = %.2f in degrees", n, output);
return 0;
```
```

Output:

```
The Inverse of sinh(8.00)=2.78 in radians
The Inverse of sinh(8.00)=159.08 in degrees
```

### Example 2: How asinh() works in C?

``````
#include <stdio.h>
#include <math.h>
int main (){
printf("%lf\n", asinh(0));
printf("%lf\n", asinh(2));
printf("%lf\n", asinh(4));
return 0;
}
```
```

Output:

```
0.000000
1.443635
2.094713
```
VIEW ALL
VIEW ALL
VIEW ALL