[Top][All Lists]

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

found a small bug in residue

From: Doug Stewart
Subject: found a small bug in residue
Date: Mon, 26 Nov 2007 10:35:40 -0500
User-agent: Thunderbird (Windows/20070809)

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 316 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.

Doug Stewart

reply via email to

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