C Standard Library

C <math.h> - asinh() Function



The C <math.h> asinh() function returns inverse hyperbolic sine of a value. The inverse hyperbolic sine of x is defined as:

asinh

Syntax

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

Parameters

x Specify the value.

Return Value

Returns the inverse hyperbolic sine of a value.

Example:

In the example below, asinh() function is used to find out the inverse hyperbolic sine of a value.

#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;
}

The output of the above code will be:

0.000000
1.443635
2.094713

❮ C <math.h> Library