packages/cafeteria/app/external/sylvester/scripts/sylvester-0.1.3.js
function(vector) {
    var n = this.elements.length;
    var V = vector.elements || vector;
    if (n != V.length) { return false; }
    do {
      if (Math.abs(this.elements[n-1] - V[n-1]) > Sylvester.precision) { return false; }
    } while (--n);
    return true;
  }
function(vector) {
    var n = this.elements.length;
    var V = vector.elements || vector;
    if (n != V.length) { return false; }
    do {
      if (Math.abs(this.elements[n-1] - V[n-1]) > Sylvester.precision) { return false; }
    } while (--n);
    return true;
  }
function ( vector ) { var n = this . elements . length ; var V = vector . elements || vector ; if ( n != V . length ) { return false ; } do { if ( Math . abs ( this . elements [ n - 1 ] - V [ n - 1 ] ) > Sylvester . precision ) { return false ; } } while ( -- n ) ; return true ; }
Returns true iff the vector is equal to the argument
Returns true iff the vector is equal to the argument