Mercurial > hg > octave-lojdl
changeset 8047:d54f113aa983
Increase test script tolerances.
author | Thomas Treichl <Thomas.Treichl@gmx.net> |
---|---|
date | Thu, 21 Aug 2008 14:04:04 -0400 |
parents | c4482fc30c7f |
children | 2f7ff06c0c7b |
files | scripts/ChangeLog scripts/optimization/sqp.m src/ChangeLog src/mappers.cc |
diffstat | 4 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-08-21 Thomas Treichl <Thomas.Treichl@gmx.net> + + * optimization/sqp.m: Increase test script tolerance. + 2008-08-21 David Bateman <dbateman@free.fr> * plot/ezplot.m : New function.
--- a/scripts/optimization/sqp.m +++ b/scripts/optimization/sqp.m @@ -742,4 +742,4 @@ %! %! obj_opt = 0.0539498477702739; %! -%! assert (all (abs (x-x_opt) < 4*sqrt (eps)) && abs (obj-obj_opt) < sqrt (eps)); +%! assert (all (abs (x-x_opt) < 5*sqrt (eps)) && abs (obj-obj_opt) < sqrt (eps));
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-08-21 Thomas Treichl <Thomas.Treichl@gmx.net> + + * mappers.cc: Increase test script tolerance. + 2008-08-20 John W. Eaton <jwe@octave.org> * help.cc (builtin_help): Go to next symbol name on error.
--- a/src/mappers.cc +++ b/src/mappers.cc @@ -1184,7 +1184,7 @@ %!assert(log ([1, e, e^2]), [0, 1, 2], sqrt (eps)); %!assert(log ([-0.5, -1.5, -2.5]), log([0.5, 1.5, 2.5]) + pi*1i, sqrt (eps)); -%!assert(log (single([1, e, e^2])), single([0, 1, 2]), sqrt (eps)); +%!assert(log (single([1, e, e^2])), single([0, 1, 2]), 4*sqrt (eps)); %!assert(log (single([-0.5, -1.5, -2.5])), single(log([0.5, 1.5, 2.5]) + pi*1i), sqrt (eps)); %!error log ();