データ接続と統合Pipeline Builder の式Hypotenuse

Hypotenuse

サポート対象:バッチ、高速、ストリーミング

Returns sqrt(x² + y²) without intermediate overflow or underflow. Returns infinity if either number is infinite, even if the other is not a number.

式のカテゴリー: 数値

引数

  • X: First side of the right triangle.
    Expression<Numeric>
  • Y: Second side of the right triangle.
    Expression<Numeric>

出力タイプ: Double

例

例1:基本ケース

引数の値:

  • X: x
  • Y: y
xy出力
3.04.05.0
-5.012.013.0
1.01.01.4142135623730951

例2:Null ケース

説明: Returns null if either number is null.

引数の値:

  • X: x
  • Y: y
xy出力
null1.0null
1.0nullnull
nullInfinitynull