The Standard LibrarymathMethodshypotOn this pagehypotComputes the square root of the sum of the squares of x and y. hypot(3.14, 2.71); //4.14773 Syntax hypot(x, y) Returns The computed value as a double.