Mercurial > octave-nkf
changeset 9290:40ba43a4745f
fix too optimistic polyfit test
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 03 Jun 2009 07:38:17 +0200 |
parents | eaf4e71e90e8 |
children | 0dc1d0f1f79c |
files | scripts/ChangeLog scripts/polynomial/polyfit.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Tue Jun 02 23:15:56 2009 +0200 +++ b/scripts/ChangeLog Wed Jun 03 07:38:17 2009 +0200 @@ -1,3 +1,7 @@ +2009-06-03 Jaroslav Hajek <highegg@gmail.com> + + * polynomial/polyfit.m: Fix test. + 2009-06-02 Rafael Laboissiere <rafael@debian.org> * help/doc.m: In test, look also for the gzipped version of the
--- a/scripts/polynomial/polyfit.m Tue Jun 02 23:15:56 2009 +0200 +++ b/scripts/polynomial/polyfit.m Wed Jun 03 07:38:17 2009 +0200 @@ -140,7 +140,7 @@ %! 315600.7143, 315602.9508, 315605.1765 ]; %! [p1, s1] = polyfit (x, y, 10); %! [p2, s2, mu] = polyfit (x, y, 10); -%! assert (2*s2.normr < s1.normr) +%! assert (s2.normr < s1.normr) %!test %! x = 1:4;