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

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

[Octave-bug-tracker] [bug #53489] linspace and logspace with endpoints (


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #53489] linspace and logspace with endpoints (Inf, Inf) is different than Matlab
Date: Sun, 20 Jan 2019 21:35:15 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #9, bug #53489 (project octave):

Is this bug actually fixed, at least on macOS? The test is still failing for
me in Octave default (hg commit 2ae2dcf0f4d5) on macOS 10.13.6.


octave:2> test logspace
***** assert (logspace (Inf + 1i, Inf + 1i, 3), repmat (complex (-Inf,Inf),
[1, 3]))
!!!!! test failed
ASSERT errors for:  assert (logspace (Inf + 1i, Inf + 1i, 3),repmat (complex
(-Inf, Inf), [1, 3]))

  Location  |  Observed  |  Expected  |  Reason
    (1)        Inf+NaNi    -Inf+Infi     'NaN' mismatch
    (2)        Inf+NaNi    -Inf+Infi     'NaN' mismatch
    (3)        Inf+NaNi    -Inf+Infi     'NaN' mismatch
octave:3> 10 ^ (Inf+1i)
ans =  Inf - NaNi
octave:4> ver
----------------------------------------------------------------------
GNU Octave Version: 6.0.0 (hg id: unknown)
GNU Octave License: GNU General Public License
Operating System: Darwin 17.7.0 Darwin Kernel Version 17.7.0: Fri Nov  2
20:43:16 PDT 2018; root:xnu-4570.71.17~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
Package Name   | Version | Installation directory
---------------+---------+-----------------------
generate_html  |   0.3.1 | /Users/janke/octave/generate_html-0.3.1
           io  |  2.4.12 | /Users/janke/octave/io-2.4.12


I don't think the bug is in linspace itself here, but in the "10 ^
linspace(...)" operation that logspace is doing.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53489>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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