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

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

[Octave-bug-tracker] [bug #53013] Comparison of complex values 2


From: Rik
Subject: [Octave-bug-tracker] [bug #53013] Comparison of complex values 2
Date: Tue, 30 Jan 2018 11:39:47 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #2, bug #53013 (project octave):

Expanding on comment #1:

A complex value Z can be represented in several forms with the obvious ones
being Cartesian (x + iy) or polar (Ae^{i theta}).  When Matlab and Octave
compare complex numbers they use the polar representation.  Hence it is
natural to first compare by magnitude (A) and only if necessary consider the
phase angle theta.

This is different from comparing a real value which uses the Cartesian
representation and only considers 'x'.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53013>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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