Library Function asinh in Math Class
Library Function asinh of math.h Header File in C
On this page we will discuss about library function asinh in math class which is used in C.
The C header file math.h contains the standard math library functions that can be used for performing various mathematical operations. The asinh function returns the arc hyperbolic sine of x in radians.
Library Function asinh of math.h Header File
atan(x) = \sinh^{-1}(x)
Declaration of asinh function
double asinh(double x)
Parameters of asinh function
The asinh function accepts a single input argument which can be any value from negative to positive.
Parameter | Description |
---|---|
double value | This value of double function ranges from -\infty\;to\; \infty |
Return value of asinh function
The asinh function returns a value in radians and it’s type is double. The function returns NaN if the parameter passed to asinh function does not lies in the valid range of value.
Parameter | Return Value |
---|---|
-\infty< x \leq -1 or 1\leq x< \infty | It returns the value in radians. |
NaN | NaN (not a number) |
Implementation of Library Function math.h asinh
The following code shows the use of asinh function.
#include <stdio.h> #include <math.h> #define PI 3.141592654 int main() { float number = 9.0; double return_value; return_value = asinh(number); printf("Inverse of sinh(%.2f) function = %.2f in radians", number, return_value); // Converting radians to degree return_value=(return_value*180)/PI; printf("\nInverse of sinh(%.2f) function= %.2f in degrees", number, return_value); return 0; }
Output:
Inverse of sinh(9.00) function = 2.89 in radians Inverse of sinh(9.00) function= 165.78 in degrees
Prime Course Trailer
Related Banners
Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription
Get over 200+ course One Subscription
Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others
Login/Signup to comment