OK, the cross terms seems to make all the difference. A polynomial order of 4 seem to be great with the data built into the VI. (You added an empty line in the first two data strings, causing some extra zero values. I fixed this too.) I did not test with the new data from the xls file, so please try.

Here's the mse for the various highest polynomial orders:
0: 889.265 (1 term)
1: 60.3489 (3 terms)
2: 8.61332 (6 terms)
3: 1.35049 (10 terms) <--- pretty good.
4: 0.02867 (15 terms) <--- optimal!5: 0.01826 (21 terms) <--- not worth the improvement.
6: 0.02656 (28 terms) <--- getting worse
I have converted the VI to LabVIEW 6.1, but I cannot test, because I currently don't have 6.1 installed (only 7.0+). The algebra VIs seems to have gotten significant improvements, and the fitting is much more reliable in LabVIEW 7.1. Even in LabVIEW 7.0, it blows up above order 3 using SVD algorithm, but it works with Cholesky. If the fit fails, try to play with some of the other algoritms.
Message Edited by altenbach on 06-29-2005 06:10 PM