asinh()
Published Oct 18, 2023
Contribute to Docs
The asinh()
function returns the inverse hyperbolic sine of a number.
Syntax
asinh(x)
The function accepts one mandatory parameter x
. It can be any value i.e., negative
, positive
, or zero
. The argument can be of Double
, Float
or Long
datatype.
The function returns the inverse hyperbolic sine of the argument. The return value will be of the same type as the argument.
Example
The example below demonstrates how to use the method to return the value of the inverse hyperbolic sine of 1.0
.
import kotlin.math.asinhfun main() {// Calculate the inverse hyperbolic sine of 1.0val result = asinh(1.0)// Print the resultprintln(result)}
The output will be:
0.881373587019543
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.
Learn Kotlin on Codecademy
- Career path
Computer Science
Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!Includes 6 CoursesWith Professional CertificationBeginner Friendly75 hours - Free course
Learn Kotlin
Learn Kotlin, the expressive, open-source programming language developed by JetBrains.Beginner Friendly9 hours