help-octave
[Top][All Lists]
Advanced

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

Re: found a small bug in residue corection


From: Ben Abbott
Subject: Re: found a small bug in residue corection
Date: Mon, 26 Nov 2007 13:01:42 -0500

On Nov 26, 2007, at 10:49 AM, Doug Stewart <address@hidden> wrote:

I an using qtoctave on windows xp
octave version 2.9.15

example that produces the problem:

residue([1],[ 1 10 25])

to fix the problem goto line 314 in residue
pnum = pnum + prepad (pn, N+1, 0);

and change it to

pnum = pnum + prepad (pn, N+1, 0,2);


This only shows up when it was trying to prepad a scaler and it padded it in the wrong direction. By adding the 2 as the 4th parameter we tell it to pad in the right direction.


Sorry for the double posting but I saw that the line number was wrong because I still had my debugging lines in the code.

Doug Stewart

Recently a significant rewrite of residue was submitted. If memory serves it was first present in 2.9.16.

That version depends upon a new function mpoles.

I'm not at my computer, but when I am I'll try your example on 2.9.17.

Ben


reply via email to

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