This function is used internally by essR to calculate relative errors between two vectors
For internal use of MEIGOR.