acosh()
Published Oct 30, 2023
Contribute to Docs
The acosh()
function is used to calculate the inverse hyperbolic cosine(arccosh) of a given number.
Syntax
acosh(x)
The function accepts one mandatory parameter x
, which should be a numeric value greater than or equal to 1
. The argument can be of Double
and Float
datatype.
Note: It returns the hyperbolic arccosine of the argument, which represents a real number.
Example
The example below demonstrates how to use acosh()
to calculate the hyperbolic arccosine of 2.0
.
import kotlin.math.acoshfun main() {val x = 2.0val result = acosh(x)println(result)}
The output will be:
1.3169578969248166
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.