From: <sla...@us...> - 2009-05-22 14:01:17
|
Revision: 5857 http://octave.svn.sourceforge.net/octave/?rev=5857&view=rev Author: slackydeb Date: 2009-05-22 13:58:34 +0000 (Fri, 22 May 2009) Log Message: ----------- Get around system-dependent precision problems when testing functions acker and place. Thanks to Rafael Laboissiere <ra...@de...> for the report and the patch. Modified Paths: -------------- trunk/octave-forge/main/control/inst/acker.m trunk/octave-forge/main/control/inst/place.m Modified: trunk/octave-forge/main/control/inst/acker.m =================================================================== --- trunk/octave-forge/main/control/inst/acker.m 2009-05-22 12:53:31 UTC (rev 5856) +++ trunk/octave-forge/main/control/inst/acker.m 2009-05-22 13:58:34 UTC (rev 5857) @@ -23,7 +23,7 @@ ## @end deftypefn ## Author: Luca Favatella <sla...@gm...> -## Version: 0.1 +## Version: 0.1.1 # TODO: modify this function to use # Ackermann's formula instead of being @@ -43,4 +43,4 @@ %! B = [0; 1]; %! P = [-1 -0.5]; %! Kexpected = [3.5 3.5]; -%! assert (acker (A, B, P), Kexpected); \ No newline at end of file +%! assert (acker (A, B, P), Kexpected, 2*eps); \ No newline at end of file Modified: trunk/octave-forge/main/control/inst/place.m =================================================================== --- trunk/octave-forge/main/control/inst/place.m 2009-05-22 12:53:31 UTC (rev 5856) +++ trunk/octave-forge/main/control/inst/place.m 2009-05-22 13:58:34 UTC (rev 5857) @@ -135,5 +135,5 @@ %! C = [2 1]; # C is useful to use ss; it doesn't matter what the value of C is %! P = [-1 -0.5]; %! Kexpected = [3.5 3.5]; -%!assert (place (ss (A, B, C), P), Kexpected); -%!assert (place (A, B, P), Kexpected); \ No newline at end of file +%!assert (place (ss (A, B, C), P), Kexpected, 2*eps); +%!assert (place (A, B, P), Kexpected, 2*eps); \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |