Increasing tolerance for two tests of current sources

Thomas Treichl Thomas.Treichl at gmx.net
Fri Aug 15 16:03:17 CDT 2008


Hi,

please consider the attached changeset, which increases the tolerance of two 
tests of the current Octave sources for Mac OS X 10.4. I have cutted out the 
messages that appear from the fntests.log file:

- >>>>> processing /Development/octave/src/mappers.cc
   ***** assert(log (single([1, e, e^2])), single([0, 1, 2]), sqrt (eps));
   !!!!! test failed
   assert (log (single ([1, e, e ^ 2])),single ([0, 1, 2]),sqrt (eps)) expected
      0   1   2
   but got
      0.00000   1.00000   2.00000
   maximum absolute error 5.96046e-08 exceeds tolerance 1.49012e-08


- >>>>> processing /Development/octave/scripts/optimization/sqp.m
   ***** test
   x0 = [-1.8; 1.7; 1.9; -0.8; -0.8];
   [x, obj, info, iter, nf, lambda] = sqp (x0, @phi, @g, []);
   x_opt = [-1.717143501952599;
             1.595709610928535;
             1.827245880097156;
            -0.763643103133572;
            -0.763643068453300];
   obj_opt = 0.0539498477702739;
   assert (all (abs (x-x_opt) < 4*sqrt (eps)) && abs (obj-obj_opt) < sqrt (eps));
   !!!!! test failed
   assert (all (abs (x - x_opt) < 4 * sqrt (eps)) && abs (obj - obj_opt) < sqrt
   (eps)) failed

Regards,

   Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tests.changeset
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080815/886779e5/attachment.ksh 


More information about the Bug-octave mailing list