function vadd(v1, v2) {
  try {
    var v = [], lim = Math.min(v1.length,v2.length);
    for(var i=0; i<lim; i++) v.push(v1[i] + v2[i]);
    return v;
  }
  catch(err) {console.error("call to vadd() failed. v1:"+v1+" | v2:"+v2+" | Err:"+err);}
}
/**
 ** Adds Vectors (all dimensions)
 */
Adds Vectors (all dimensions)
Adds Vectors ( all dimensions )
function vadd(v1, v2) {
  try {
    var v = [], lim = Math.min(v1.length,v2.length);
    for(var i=0; i<lim; i++) v.push(v1[i] + v2[i]);
    return v;
  }
  catch(err) {console.error("call to vadd() failed. v1:"+v1+" | v2:"+v2+" | Err:"+err);}
}
function vadd ( v1 , v2 ) { try { var v = [ ] , lim = Math . min ( v1 . length , v2 . length ) ; for ( var i = 0 ; i < lim ; i ++ ) v . push ( v1 [ i ] + v2 [ i ] ) ; return v ; } catch ( err ) { console . error ( "call to vadd() failed. v1:" + v1 + " | v2:" + v2 + " | Err:" + err ) ; } }
Adds Vectors (all dimensions)
Adds Vectors ( all dimensions )