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

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

[Octave-bug-tracker] [bug #60384] `mpoles` incorrectly classifies distin


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60384] `mpoles` incorrectly classifies distinct poles as unique ones
Date: Wed, 14 Apr 2021 08:40:14 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Edg/89.0.774.76

Update of bug #60384 (project octave):

        Operating System:               GNU/Linux => Any                    
                 Summary: Residue function produces incorrect results when
multiplicity of poles > 1 => `mpoles` incorrectly classifies distinct poles as
unique ones

    _______________________________________________________

Follow-up Comment #4:

I believe, the root of the issue is that `mpoles` incorrectly classifies the
two distinct roots in the original example as a single root with multiplicity
2:

A = [1, 1.100000536842105e+04, 1.703789473684211e+03, 0];
poles1 = roots (A);
[e, idx] = mpoles (poles1, 0.001, 1)


In Octave:

>> [e, idx] = mpoles (poles1, 0.001, 1)
e =

   1
   2
   1

idx =

   3
   2
   1


I'd guess that this might be because one of the poles differs in orders of
magnitude from the other ones.

Re-titling report.

Fwiw, in Matlab:

>> A = [1, 1.100000536842105e+04, 1.703789473684211e+03, 0];
poles1 = roots (A);
[e, idx] = mpoles (poles1, 0.001, 1)

e =

     1
     1
     1


idx =

     2
     3
     1


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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