question: 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 ) ; }
target:  Subtract the values in the supplied array from this vector instance