module function Math.#hypot
hypot(x, y) -> Float
-
sqrt(x*x + y*y) を返します。
この値は x, y を直交する 2 辺とする直角三角形の斜辺(hypotenuse)の長さです。
- [PARAM] x:
- 実数
- [PARAM] y:
- 実数
Math.hypot(3, 4) #=> 5.0
module Math
hypot(x, y) -> Float
sqrt(x*x + y*y) を返します。
この値は x, y を直交する 2 辺とする直角三角形の斜辺(hypotenuse)の長さです。
Math.hypot(3, 4) #=> 5.0