[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two fail
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686 |
Date: |
Tue, 3 Apr 2018 12:53:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #8, bug #53435 (project octave):
The attached patch updates the references to the highest possible precision as
seen in Matlab R2016a.
Most changes only add a few more decimals. But the test in camroll.m gives
very different results from the previous ones (R2014a):
## test rolling, then rolling back
%!test
%! hf = figure ("visible", "off");
%! unwind_protect
%! peaks ();
%! p = camup ();
%! assert (p, [0 0 1], eps);
%! camroll (30);
%! p = camup ();
%! ## from Matlab R2014a
%! q = [0.826398839602911 0.255644120004753 0.50170812412194];
%! ## from Matlab R2016a
%! q = [0.33969638129660373 0.02014238382998192 0.94031944194919104];
%! assert (p, q, 10*eps);
%! camroll (-30);
%! ## note it does not go back to [0 0 1]: instead orthog to camera view:
%! p = camup ();
%! ## The following assert doesn't seem to have any validation in Matlab
R2016a
%! assert (dot (p, camtarget () - campos ()), 0, 32*eps); # FIXME: looser
tolerance needed on i386
%! ## from Matlab R2014a
%! q = [0.496200420425837 0.646660977913424 0.57932264103285];
%! ## from Matlab R2016a
%! q = [0.14033891839365262 0.18289323924769943 0.97306477226420207];
%! assert (p, q, 10*eps);
%! unwind_protect_cleanup
%! close (hf);
%! end_unwind_protect
The on-screen results in R2016a seem to be reasonable. Maybe someone with a
newer Matlab version might be able to check whether this is only an error in
Matlab R2016a on Windows 10 64bit.
Code to execute:
hf = figure;
peaks ();
p = camup ();
fprintf ('%.17f\n', p);
camroll (30);
p = camup ();
fprintf ('%.17f\n', p);
camroll (-30);
p = camup ();
fprintf ('%.17f\n', p);
(file #43783)
_______________________________________________________
Additional Item Attachment:
File name: bug53435_cam_reference.patch Size:6 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53435>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686,
Markus Mützel <=
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Rik, 2018/04/07
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Dmitri A. Sergatskov, 2018/04/07
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Rik, 2018/04/07
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Dmitri A. Sergatskov, 2018/04/07
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Markus Mützel, 2018/04/08
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Markus Mützel, 2018/04/08
- [Octave-bug-tracker] [bug #53435] tests: camorbit.m, camroll.m: two failing tests on i686, Rik, 2018/04/08