Calculates the arc hyperbolic sine function of a single precision floating-point value.
Include
<math.h>
Prototype
float asinhf(float x);
Argument
x
Return Value
Returns the arc hyperbolic sine of x
.
Example
#include <math.h>
#include <stdio.h>
#include <errno.h>
int main(void)
{
double x, y;
errno = 0;
x = -1.0;
y = asinhf(x);
if (errno)
perror("Error");
printf("The arc hyperbolic sine of %f is %f\n", x, y);
errno = 0;
x = 1.0;
y = asinhf(x);
if (errno)
perror("Error");
printf("The arc hyperbolic sine of %f is %f\n", x, y);
errno = 0;
x = 720.0;
y = asinhf(x);
if (errno)
perror("Error");
printf("The arc hyperbolic sine of %f is %f\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