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

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

[Octave-bug-tracker] [bug #49291] residue function gives incompatible re


From: Rik
Subject: [Octave-bug-tracker] [bug #49291] residue function gives incompatible result
Date: Mon, 10 Oct 2016 16:41:04 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #7, bug #49291 (project octave):

@Marco: Could you try the following code in Matlab?  It is from one of the
BIST tests for residue.  If Matlab is really not applying any filtering for
small results than br will be a 4-element vector where the first entry is
nearly 0.


b = [1, 0, 1];
a = [1, 0, 18, 0, 81];
[r, p, k, e] = residue (b, a);
r1 = [-5i; 12; +5i; 12]/54;
p1 = [+3i; +3i; -3i; -3i];
assert (r, r1, 1e-12);
assert (p, p1, 1e-12);
assert (isempty (k));
assert (e, [1; 2; 1; 2]);
[br, ar] = residue (r, p, k);
assert (br, b, 1e-12);
assert (ar, a, 1e-12);




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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