Navigation

Operators and Keywords

Function List:

C++ API

: [multp, idxp] = mpoles (p)
: [multp, idxp] = mpoles (p, tol)
: [multp, idxp] = mpoles (p, tol, reorder)

Identify unique poles in p and their associated multiplicity.

The output is ordered from largest pole to smallest pole.

If the relative difference of two poles is less than tol then they are considered to be multiples. The default value for tol is 0.001.

If the optional parameter reorder is zero, poles are not sorted.

The output multp is a vector specifying the multiplicity of the poles. multp(n) refers to the multiplicity of the Nth pole p(idxp(n)).

For example:

p = [2 3 1 1 2];
[m, n] = mpoles (p)
   ⇒ m = [1; 1; 2; 1; 2]
   ⇒ n = [2; 5; 1; 4; 3]
   ⇒ p(n) = [3, 2, 2, 1, 1]

See also: residue, poly, roots, conv, deconv.

Package: octave