bugGNU Octave - Bugs: bug #63654, sign of arg() of complex number...

 
 

bug #63654: sign of arg() of complex number depends on vector orientation

Submitter:  Georg Wiora <gwiora>
Submitted:  Fri 13 Jan 2023 02:52:22 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:  gwiora Open/Closed:  * Closed
Release:  * 7.3.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 Jan 2023 03:32:13 PM UTC, comment #3: 

just to lay it out fully, see the comparison below.  closing report as invalid.


octave:1> test = linspace(-1,10,10) + i;
octave:2> arg(test)
ans =

   2.356194   1.352127   0.605545   0.358771   0.251690   0.193211   0.156602   0.131588   0.113435   0.099669

octave:3> arg(test')
ans =

  -2.356194
  -1.352127
  -0.605545
  -0.358771
  -0.251690
  -0.193211
  -0.156602
  -0.131588
  -0.113435
  -0.099669

octave:4> arg(test.')
ans =

   2.356194
   1.352127
   0.605545
   0.358771
   0.251690
   0.193211
   0.156602
   0.131588
   0.113435
   0.099669


Nicholas Jankowski <nrjank>
Group Member
Fri 13 Jan 2023 03:21:01 PM UTC, comment #2: 

To be precise "'" is a "complex conjugate transpose" operator.
See "help ctranspose" for details.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 13 Jan 2023 03:17:54 PM UTC, comment #1: 

This is not a bug.
"'" is a complex conjugate operator.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 13 Jan 2023 02:52:22 PM UTC, original submission:  

In my opinion the two calls to arg() with a complex number as argument should produce the same result:

test = linspace(-1,10,10) + i;
arg(test)
arg(test')


This is not the case. The sign of the result depends on array orientation. I think this is a (very annoying) bug.

Georg Wiora <gwiora>

 

(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 nrjank (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by gwiora (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-13 nrjank StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code