bugGNU Octave - Bugs: bug #55420, Wrong polar plot with complex...

 
 

bug #55420: Wrong polar plot with complex numbers

Submitter:  None
Submitted:  Tue 08 Jan 2019 12:51:03 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  dan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.4.1
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Jan 2019 01:24:11 PM UTC, comment #1: 

Thank you for your bug report.

Please see the documentation for polar:
"If a single complex input cplx is given then the real part is used for theta and the imaginary part is used for rho."

So what you are seeing is what is expected. Whether this is useful depends on the application I guess.

Closing as invalid.

Markus Mützel <mmuetzel>
Group administrator
Tue 08 Jan 2019 12:51:03 PM UTC, original submission:  

Hey! If I plot complex numbers in polar plot, the rho and theta values seems to be flipped, so that the result plotted is wrong.

So insted the first value is the abs, and the complex number the argument (arg), it is completeley the way round.
If I plot it via value (abs) and argument (rad) instead the complex numbers, the result is correct.

For example:
polar(1+i,"+") should give me an abs of sqrt(2) and an angle of 45 degree. Instead it is somewhere else, short before 60° at a value of 1. If i type in:
polar(pi/4+sqrt(2)*i,"+")

the result is plotted correct. So for me a clear simple flip, that the complex number isn't correctly interpreted.

Anonymous

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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
    2019-01-08 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
        SummaryWront polar plot with complex numbers Wrong polar plot with complex numbers

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code