The asinh()
function returns the inverse hyperbolic sine of a number.
The figure below shows the mathematical representation of the asinh()
function:
The acosh()
function returns the inverse hyperbolic cosine of a number.
The figure below shows the mathematical representation of the acosh()
function:
The atanh()
function returns the inverse hyperbolic tangent of a number.
The figure below shows the mathematical representation of the atanh()
function:
asinh(angle)
acosh(angle)
atanh(angle)
These functions require an angle in radians as a parameter.
acosh()
should be greater than 1 otherwise it returns domain error.atanh()
should be between 1 and -1 otherwise it returns domain error.The asinh()
function returns the inverse hyperbolic sine of the angle sent as a parameter.
The acosh()
function returns the inverse hyperbolic cosine of the angle sent as a parameter.
The atanh()
function returns the inverse hyperbolic tangent of the angle sent as a parameter.
The code below demonstrates how to use the inverse hyperbolic functions function in Ruby:
#positive number in radiansprint "The value of asinh(0.5) : ", Math.asinh(0.5), "\n"print "The value of acosh(1.5) : ", Math.acosh(1.5), "\n"print "The value of atanh(0.5) : ", Math.atanh(0.5), "\n"#negative number in radiansprint "The value of asinh(-0.5) : ", Math.asinh(-0.5), "\n"print "The value of atanh(-0.5) : ", Math.atanh(-0.5), "\n"#zeroprint "The value of asinh(0) : ", Math.asinh(0), "\n"print "The value of atanh(0) : ", Math.atanh(0), "\n"