v1.8.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.math / acosh

acosh

Common
JVM
JS
Native
1.2
fun acosh(x: Double): Double
(Common source) (JVM source) (JS source) (Native source)
fun acosh(x: Float): Float
(Common source) (JVM source) (JS source) (Native source)

Computes the inverse hyperbolic cosine of the value x.

The returned value is positive y such that cosh(y) == x.

Special cases:

  • acosh(NaN) is NaN
  • acosh(x) is NaN when x < 1
  • acosh(+Inf) is +Inf
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains