public VectorInstance subtract(double[] other) throws Exception {
  ArrayList<Object> diffVals=new ArrayList<Object>();
  for (int i=0; i < other.length; i++) {
    double x=m_values.valueDouble(i);
    double y=other[i];
    double result=x - y;
    diffVals.add(new Double(result));
  }
  Array newArray=Array.create(diffVals,null);
  return new VectorInstance(newArray,m_vectorFields);
}

public VectorInstance subtract ( double [ ] other ) throws Exception { ArrayList < Object > diffVals = new ArrayList < Object > ( ) ; for ( int i = 0 ; i < other . length ; i ++ ) { double x = m_values . valueDouble ( i ) ; double y = other [ i ] ; double result = x - y ; diffVals . add ( new Double ( result ) ) ; } Array newArray = Array . create ( diffVals , null ) ; return new VectorInstance ( newArray , m_vectorFields ) ; }
subtract the values in the supplied array from this vector instance
