C++ Standard Library C++ STL Library

C++ <cmath> - asinh() Function



The C++ <cmath> asinh() function returns inverse hyperbolic sine of a value. The inverse hyperbolic sine of x is defined as:

asinh

Syntax

double asinh (double x);
float asinh (float x);
long double asinh (long double x);
double asinh (T x);           

Parameters

x Specify the value.

Return Value

Returns the inverse hyperbolic sine of a value.

Example:

In the example below, asinh() function is used to find out the inverse hyperbolic sine of a value.

#include <iostream>
#include <cmath>
using namespace std;
 
int main (){
  cout<<asinh(0)<<"\n";
  cout<<asinh(2)<<"\n";
  cout<<asinh(4)<<"\n";
  return 0;
}

The output of the above code will be:

0
1.44364
2.09471

❮ C++ <cmath> Library