The square of the hypotenuse of a right triangle is equal to the sum of the squares on the other two sides.
This is Pythagoras\'s Theore
There is a method in java.lang.Math:
public static double hypot (double x, double y)
for which the javadocs asserts:
Returns sqrt(x2 +y2) without intermediate overflow or underflow.
looking into src.zip, Math.hypot uses StrictMath, which is a native Method:
public static native double hypot(double x, double y);