English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The asinh() function calculates the inverse hyperbolic sine of the parameter.
double asinh(double x);
The asinh() function accepts a single parameter of type double and returns a value in radians.
And, the return value of asinh() is of double type.
To better understand asinh():
[Mathematics] sinh-1x = asinh(x) [In C programming]
Additionally, two functions asinhf() and asinhl() are used to handle float and long double, respectively.
The asinh() function is in<math.h>Defined in the header file.
The parameter range of asinh() can be any value from negative to positive.
#include <stdio.h> #include <math.h> #define PI 3.141592654 int main() { float num = 8.0; double result; result = asinh(num); printf("sinh(%.2f) Hyperbolic Sine Value = %.2f "radians", num, result); //Convert radians to degrees result=(result*180)/PI; printf("\nsinh(%.2f) Hyperbolic Sine Value = %.2f "degree", num, result); return 0; }
Output Result
sinh(8.00) Hyperbolic Sine Value =2.78 radians sinh(8.00) Hyperbolic Sine Value =159.08 degree