bugGNU Octave - Bugs: bug #51557, Function iscomplex

 
 

bug #51557: Function iscomplex

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Mon 24 Jul 2017 12:06:19 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Jul 2017 03:33:31 PM UTC, comment #1: 

Octave is a superset of Matlab.  It often has additional features, such as the more specific end keywords like endif, endfor, etc. or the additional comment character '#'.  Although iscomplex is just ! isreal, it can sometimes make the code clearer if the programmer can write exactly what they mean.  If the programmer wants to test whether a variable is complex it doesn't hurt to have a function specifically for that.

Rik <rik5>
Group administrator
Mon 24 Jul 2017 12:06:19 PM UTC, original submission:  

I did some research and it is clear: matlab has no function iscomplex.
Instead it has a function isreal as octave does.

The bug in isreal if fixed must also trigger an according chage in iscomplex, to that the functions fit together again.
I would suggest to deprecate iscomplex,
since is it just !isreal(x) (and also should be).

Ernst Reissner <ernstreissner>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ernstreissner (Submitted the item)
  • -email is unavailable- added by ernstreissner
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-24 rik5 StatusNone Wont Fix
        Open/ClosedOpen Closed
    2017-07-24 ernstreissner Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code