PROWAREtech

articles » current » javascript » ie11 » ie11-prototype-math-hypot

JavaScript: IE11 Math.hypot() Method/Function

Create the Math.hypot() function for Internet Explorer 11.

Still developing for IE11? Well, the Math.hypot() method in JavaScript is used to calculate the square root of the sum of squares of numbers passed to it as arguments. It is basically used to find the hypotenuse of a right-angled triangle or the magnitude of a complex number.


Math.hypot = Math.hypot || function (x, y) { return Math.sqrt(x * x + y * y); };

PROWAREtech

Hello there! How can I help you today?
Ask any question

PROWAREtech

This site uses cookies. Cookies are simple text files stored on the user's computer. They are used for adding features and security to this site. Read the privacy policy.
ACCEPT REJECT