Rescaling the elements in x allows me to go to an 18'th order polynomial, and multiplying the results by scaling factor (k)also works out correct. I am not interested in the result however. I want to determine the coefficients. By using my sample dataset and scaling the large x values I get a set of polynomial values. Using the same dataset and not scaling the x values I get a diffirent set of polynomial values. Plotting the calculated results give me exactly the same resulting fit.
Coefficient without scaling:
Coefficient 0: -1.9910e+000
Coefficient 1: 5.3458e-003
Coefficient 2: -4.8563e-006
Coefficient 3: -1.3094e-008
Coefficient 4: 1.6776e-011
Coefficient 5: 8.5927e-015
Coefficient 6: -8.6098e-018
Scaled Coefficients: (Multipl
ied by the scaling Factor of 1041)
Coefficient 0: -2.0734e+003
Coefficient 1: 5.7932e+003
Coefficient 2: -5.4785e+003
Coefficient 3: -1.5377e+004
Coefficient 4: 2.0512e+004
Coefficient 5: 1.0889e+004
Coefficient 6: -1.2909e+004
This proofs that I can not simply multiply the coefficients by the scaling factor and I've verified my results using Matlab. Attached see the dataset that I've used.
May aim is to achieve an 18'th order fit. The fitting works fine for any order size after scaling.
Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd