java.lang.Math.hypot(double x, double y)


java.lang.Math.hypot(double x, double y)

package com.codingdict;



import java.lang.*;



public class MathDemo {



   public static void main(String[] args) {



      // get two double numbers

      double x = 60984.1;

      double y = -497.99;



      // call hypot and print the result

      System.out.println("Math.hypot(" + x + "," + y + ")=" + Math.hypot(x, y));

   }

}