octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scaling for polyfit.m [patch]


From: John W. Eaton
Subject: scaling for polyfit.m [patch]
Date: Tue, 22 Aug 2006 16:37:43 -0400

On  9-Aug-2006, Thomas Weber wrote:

| some time ago we had a bug[1] filed in Debian against polyfit.m; it
| breaks down for large values of x (which is known and a problem in
| Matlab as well). 
| 
| Based on the idea of the bug reporter, I've changed the polyfit function
| to always apply scaling, making it work for large x values.
| 
| The patch is attached; it includes a test with the data provided in the
| bugreport. 
| 
| One thing where I was unsure is which polynomial to use for calculating
| the values of S; I've taken the scaled polynomial because I think most
| people want the conditition value for the actual calculation.


I'm not sure that we should always do the scaling.  Maybe it should be
optional?

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]