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 math h asinh

Library Function asinh of math.h Header File

In C programming language the asinh function is included in math.h header file. The range of input argument which is passed to asinh function is not limited here as it can be any value from negative to positive and returns the inverse hyperbolic sine of parameter x in radians.

Declaration of asinh function

double asinh(double x) 
We can find the inverse hyperbolic sine of different data types like float and long double by using the specific functions asinhf() and asinhl() respectively.

Parameters of asinh function

The asinh function accepts a single input argument  which can be any value from negative to positive.

ParameterDescription
double valueThis 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.

ParameterReturn Value
-\infty< x \leq -1 or
1\leq x< \infty
It returns the value in radians.
NaNNaN (not a number)

Implementation of Library Function math.h asinh

The following code shows the use of asinh function.

Run
#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

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription