asinhl Function

Calculates the arc hyperbolic sine function of a double precision floating-point value.

Include

<math.h>

Prototype

long double asinhl(long double x);

Argument

x
value for which to return the arc hyperbolic sine

Return Value

Returns the arc hyperbolic sine of x.

Example

#include <math.h>
#include <stdio.h>
#include <errno.h>

int main(void)
{
  long double x, y;

  errno = 0;
  x = -1.0;
  y = asinhl(x);
  if (errno)
    perror("Error");
  printf("The arc hyperbolic sine of %Lf is %Lf\n", x, y);

  errno = 0;
  x = 1.0;
  y = asinhl(x);
  if (errno)
    perror("Error");
  printf("The arc hyperbolic sine of %Lf is %Lf\n", x, y);

  errno = 0;
  x = 720.0;
  y = asinhl(x);
  if (errno)
    perror("Error");
  printf("The arc hyperbolic sine of %Lf is %Lf\n", x, y);
}

Example Output

The arc hyperbolic sine of -1.000000 is -0.881374
The arc hyperbolic sine of 1.000000 is 0.881374
The arc hyperbolic sine of 720.000000 is 7.272399