[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51148] residue function potentially inaccurat
From: |
Marco Caliari |
Subject: |
[Octave-bug-tracker] [bug #51148] residue function potentially inaccurate |
Date: |
Tue, 6 Jun 2017 08:51:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #12, bug #51148 (project octave):
The problem is in the subfunction rresidue in residue.m. It is dangerous to
compute pn as deconvolution of pden and current pm (around line 340). In fact,
pm is the product of all the other denominators. If you replace
pn = deconv (pden, pm);
with
pn = 1;
for j = indx(1):n - 1
pn = conv (pn, [1, -p(j)]);
end
for j = n + 1:indx(end)
pn = conv (pn, [1, -p(j)]);
end
for j = 1:e(n) - 1
pn = deconv (pn, [1, -p(n)]);
end
you get the right solution. I'm still not satisfied with the last
deconvolution step. Any better idea?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51148>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51148] Function that runs in Matlab produces error in Octave, anonymous, 2017/06/01
- [Octave-bug-tracker] [bug #51148] Function that runs in Matlab produces error in Octave, Doug Stewart, 2017/06/01
- [Octave-bug-tracker] [bug #51148] Function that runs in Matlab produces error in Octave, anonymous, 2017/06/01
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Rik, 2017/06/01
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, anonymous, 2017/06/01
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate,
Marco Caliari <=
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Rik, 2017/06/06
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Rik, 2017/06/06
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Marco Caliari, 2017/06/08
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Rik, 2017/06/08
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, anonymous, 2017/06/09
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Marco Caliari, 2017/06/09
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, anonymous, 2017/06/09
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, anonymous, 2017/06/09
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Marco Caliari, 2017/06/09
- [Octave-bug-tracker] [bug #51148] residue function potentially inaccurate, Rik, 2017/06/09