hypot (Function)

Signature: hypot(x: t0, y: t0) -> t0

Description: sqrt(xx + yy) without intermediate overflow or underflow. Total.

Parameters

  • x (t0): The first leg
  • y (t0): The second leg

Returns: t0

Example

print(hypot(3.0, 4.0))  // 5.0
print (hypot (3.0, 4.0))  // 5.0