bugGNU Octave - Bugs: bug #51557, Function iscomplex


bug #51557: Function iscomplex

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project 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:

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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 rei3ner@arcor.de

    Back to the top

    Powered by Savane 3.5