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

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

[Octave-bug-tracker] [bug #48363] __run-test_suite_ FAILs for data-cc.ts


From: Rik
Subject: [Octave-bug-tracker] [bug #48363] __run-test_suite_ FAILs for data-cc.tst ('NaN' mismatches)
Date: Fri, 1 Jul 2016 17:03:50 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #3, bug #48363 (project octave):

It is probably worth tracing this code down.  It runs from Flog2 in data.cc in
libinterp to liboctave/numeric/lo-mappers.cc.  We are using C++ std::log2, but
also std::log and std::frexp.  Testing with a Windows VM shows there is a
clear difference when different code paths are used.


f = log2 ([Inf, -Inf])
f =

       Inf + 0.00000i       Inf + 4.53236i


This result is the same as Linux.

The two argument form, which is the failing one, is


[f, e] = log2 ([Inf, -Inf])
f =

   NaN   NaN

e =

  -1  -1




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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