BVB Source Codes

reactide Show es6.math.hypot.js Source code

Return Download reactide: download es6.math.hypot.js Source code - Download reactide Source code - Type:.js
  1. // 20.2.2.17 Math.hypot([value1[, value2[, 鈥 ]]])
  2. var $export = require('./_export')
  3.   , abs     = Math.abs;
  4.  
  5. $export($export.S, 'Math', {
  6.   hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars
  7.     var sum  = 0
  8.       , i    = 0
  9.       , aLen = arguments.length
  10.       , larg = 0
  11.       , arg, div;
  12.     while(i < aLen){
  13.       arg = abs(arguments[i++]);
  14.       if(larg < arg){
  15.         div  = larg / arg;
  16.         sum  = sum * div * div + 1;
  17.         larg = arg;
  18.       } else if(arg > 0){
  19.         div  = arg / larg;
  20.         sum += div * div;
  21.       } else sum += arg;
  22.     }
  23.     return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
  24.   }
  25. });
downloades6.math.hypot.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top