octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53242] tests: 'test subspace.m' fails randoml


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53242] tests: 'test subspace.m' fails randomly
Date: Thu, 1 Mar 2018 05:39:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #8, bug #53242 (project octave):

Ah, OK.  It's the angle between the hyperplanes formed by the vectors in each
subspace.

Your tests are good--there is some higher dimensionality and some vectors in
quadrants other than the first.

We do want to test some small angles though, which is the point of the higher
accuracy algorithm.  (Yesterday I emailed the author listed in the script file
for good tests regarding accuracy, but haven't heard anything.)  The problem
with examples that are common fractions of pi is that often the trig function
algorithm is perfectly accurate at that point because it could be a specially
defined case rather than a numeric estimation.  An example of small angle
might be


theta = pi/200;
Ry = [cos(theta) 0 sin(theta);0 1 0;-sin(theta) 0 cos(theta)];
assert(subspace(Ry*[1 0 0]',[1 1 0;1 -1 0]'), theta, eps);


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53242>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]