# HG changeset patch # User Jaroslav Hajek # Date 1244007497 -7200 # Node ID 40ba43a4745f7fd4c22667efea97ce667ed2f17f # Parent eaf4e71e90e8d5be01f00993c04c5917af9a2fff fix too optimistic polyfit test diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-06-03 Jaroslav Hajek + + * polynomial/polyfit.m: Fix test. + 2009-06-02 Rafael Laboissiere * help/doc.m: In test, look also for the gzipped version of the diff --git a/scripts/polynomial/polyfit.m b/scripts/polynomial/polyfit.m --- a/scripts/polynomial/polyfit.m +++ b/scripts/polynomial/polyfit.m @@ -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;