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

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

[Octave-bug-tracker] [bug #55198] rat() should support complex numbers


From: Rik
Subject: [Octave-bug-tracker] [bug #55198] rat() should support complex numbers
Date: Mon, 10 Dec 2018 17:56:01 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063

URL:
  <https://savannah.gnu.org/bugs/?55198>

                 Summary: rat() should support complex numbers
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 10 Dec 2018 02:56:00 PM PST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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