English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

C Language Basic Tutorial

C Language Flow Control

C Language Functions

C Language Arrays

C Language Pointers

C Language Strings

C Language Structure

C Language File

C Others

C Language Reference Manual

C library function asinh() usage and example

C Standard Library <math.h>

The asinh() function calculates the inverse hyperbolic sine of the parameter.

C asinh() prototype

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.

C asinh() range

The parameter range of 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("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

C Standard Library <math.h>