The asinh() function returns the inverse hyperbolic sine of a number. The inverse hyperbolic sine is the value whose hyperbolic sine is number. In mathematics, the inverse hyperbolic functions are the inverse functions of the hyperbolic functions.
asinh() Function in R
To calculate the hyperbolic arccosine in R, use the asinh() function. The inverse hyperbolic cosine function is defined by x == cosh(y). The acosh(x) returns the inverse hyperbolic cosine of the elements of x when x is a REAL scalar, vector, matrix, or array. The result has the same shape as x.
x: It is a numeric value, array, or vector.
Let’s calculate the asinh value of 1 and 0.
 0  0.8813736
Calculate asinh() of complex number
Define a complex value and pass that value to the asinh() function.
dt <- 8 + 9i asinh(dt)
Plot the asinh() function to a graph
dt <- seq(-1, 1, by = 0.01) plot(dt, asinh(dt), type = "l", col = "red")
The function returns the NaN value that is why it can’t draw a graph based on that value.
Applying asinh() function to a Vector
To create a Vector in R, use the c() function. Then pass that vector to the asinh() function.
rv <- c(-1, 0.5, 0, 0.5, 1) asinh(rv)
 -0.8813736 0.4812118 0.0000000 0.4812118 0.8813736
Passing a pi to the asinh() function
The pi is an inbuilt constant in R programming, and its value is 3.141593.
Let’s find the pi constant’s asinh() value.
Let’s see another example of pi.
asinh(pi / 4)
That is it for asinh() function in R programming.