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

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

[Octave-bug-tracker] [bug #47775] realpow and sparse-xpow.cc-tst fails


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47775] realpow and sparse-xpow.cc-tst fails
Date: Tue, 26 Apr 2016 05:22:16 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #10, bug #47775 (project octave):

OK. I'll try to make time this evening.

Note however that although the difference between real and complex is huge if
the input is real, it is not huge if the input is already complex, which is
the case here.

If the [3,4] in the test were replaced by [3+eps, 4+eps], then the true result
would indeed be complex.  If we want to treat integers as "special", then
there is a case for doing that ourselves, rather than relying on the complex
library to do it.  That is what I had to do in pown() in oct-stream.cc to get
1e+10 etc. to be exact integers in textscan.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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