I am looking for code to compute the RMS deviation between two sets of cartesian coordinates. The coordinates would be arbitrarily oriented with respect to each other, so some sort of fitting would be required (LLSQ, NLLSQ, or simplex). General or specific code would be appreciated. Thanks. Jim