fun hypot(x: Double, y: Double): Double
fun hypot(x: Float, y: Float): Float
Computes sqrt(x^2 + y^2)
without intermediate overflow or underflow.
Special cases:
+Inf
if any of arguments is infiniteNaN
if any of arguments is NaN
and the other is not infinite
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/hypot.html