sa6113 wrote: > Dear All, > > I have a problem using polyfit with a degree greater than 118 :
The problem is that polynomial fitting generally doesn't make sense for degree higher than 4 or 5--if that--and at very high degree it is inevitable that the matrix will become singular. In other words, there is not enough information in the data to uniquely determine the fit. Whatever it is you are trying to to, fitting a polynomial with a high degree is the wrong way to do it. Eric > > The code is : > matplotlib.mlab.polyfit( x, y, pow ) # pow is degree of polynomial > > for pow in range 118 and 238 the error is : > LinAlgError, 'singular martix' > > and for pow greater than 237 this error raise : > OverflowError : math range error ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users