bugGNU Octave - Bugs: bug #55198, rat() should support complex...


bug #55198: rat() should support complex numbers

Submitted by:  Rik <rik5>
Submitted on:  Mon 10 Dec 2018 10:56:00 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
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.


Wed 06 Mar 2019 06:32:38 AM UTC, comment #3: 

And the user's ID was vtk_001, not 0001.

John W. Eaton <jwe>
Project Administrator
Wed 06 Mar 2019 06:31:59 AM UTC, comment #2: 

Oh, I see now.  I deleted them.

John W. Eaton <jwe>
Project Administrator
Wed 06 Mar 2019 06:30:20 AM UTC, comment #1: 

The files uploaded here have a TMW copyright.  How can we have them removed?

vtk_0001, you can't just copy files from Matlab.

John W. Eaton <jwe>
Project Administrator
Mon 10 Dec 2018 10:56:00 PM UTC, original submission:  

Matlab's version of rat() supports complex numbers.  Octave's should as well.

For reference, here is a sample result:

rat (complex (0.5, pi))

ans =

  3×18 char array

    '1 + 1/(-2)        '
    ' +i* ...          '
    '3 + 1/(7 + 1/(16))'

I would argue that it might be better to have the real part of the number on one line and the complex part on the next, rather than splitting the value in to three parts.

Rik <rik5>
Project Administrator


(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 jwe (Posted a comment)
  • -email is unavailable- added by vtk_001 (Updated the item)
  • -email is unavailable- added by rik5 (Submitted the item)

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-06 jwe Attached File#46441 => Removed
    2019-03-06 jwe Attached File#46440 => Removed
    2019-03-06 vtk_001 Attached File- => Added rational package.zip, #46440
        Attached File- => Added Screenshot from 2019-03-05 23-40-43.png, #46441
    2018-12-10 rik5 Priority5 - Normal => 3 - Low

    Back to the top

    Powered by Savane 3.5