[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51556] function isreal applied on complex num
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #51556] function isreal applied on complex numbers with zero imaginary part |
Date: |
Mon, 24 Jul 2017 10:04:33 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Follow-up Comment #3, bug #51556 (project octave):
To confirm JWE's presumption, Matlab r2017b prerelease gives:
>> isreal (0i)
ans =
logical
1
>>
and r2016b does exactly the same.
Furthermore,
>> format compact
>> x = complex (12, 0) %% 12+0i
isreal (x) %% false
y = 1 + x %% 13
isreal (y) %% true
x =
12.0000 + 0.0000i
ans =
logical
0
y =
13
ans =
logical
1
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51556>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/