C asinh()

C asinh() Prototype

double asinh (double x);

Function asinh() takes a single argument as double and returns the value in radians.

And, the returned value of asinh() is of type double.

For better understanding of asinh():

[Mathematics] sinh-1x = asinh(x) [In C programming] 

Two other functions asinhf() and asinhl() are also present to specifically work with float and long double respectively.

The asinh() function is defined in <math.h> header file.


C asinh() range

The range of argument for asinh() can be any value from negative to positive.


Example: C asinh() function

#include <stdio.h>
#include <math.h>
#define PI 3.141592654

int main()
{
	float num = 8.0;
	double result;
	result = asinh(num);
	
	printf("Inverse of sinh(%.2f) = %.2f in radians", num, result);
	// Converting radians to degree
	result=(result*180)/PI;
	printf("\nInverse of sinh(%.2f) = %.2f in degrees", num, result);
	return 0;
}

Output

Inverse of sinh(8.00)=2.78 in radians
Inverse of sinh(8.00)=159.08 in degrees
Did you find this article helpful?