hypot (Function)

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

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

Parameters

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

Returns: float

Example

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