るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.026秒)

別のキーワード

  1. math hypot
  2. _builtin hypot
  3. hypot math
  4. hypot _builtin

モジュール

検索結果

Math.#hypot(x, y) -> Float (18110.0)

sqrt(x*x + y*y) を返します。

...sqrt(x*x + y*y) を返します。

この値は x, y を直交する 2 辺とする直角三角形の斜辺(hypotenuse)の長さです。

@param x 実数
@param y 実数

@raise TypeError 引数のどちらかに数値以外を指定した場合に発生します。

@raise RangeError 引数...