mpoles function

Multiplicity of poles

Multiplicity of poles

Identify unique poles and their associated multiplicity.

mpoles(p, tol = 0.001, reorder = TRUE, index.return = FALSE)

Arguments

  • p: vector of poles.
  • tol: tolerance. 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.
  • reorder: logical. If TRUE, (default), the output is ordered from largest pole to smallest pole.
  • index.return: logical indicating if index vector should be returned as well. See examples. Default: FALSE.

Returns

If index.return = TRUE, a list consisting of two vectors:

  • m: vector specifying the multiplicity of the poles
  • n: index

If index.return = FALSE, only m is returned (as a vector).

Examples

p <- c(2, 3, 1, 1, 2) ret <- mpoles(p, index = TRUE)

See Also

poly, residue

Author(s)

Ben Abbott, bpabbott@mac.com .

Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com

  • Maintainer: Geert van Boxtel
  • License: GPL-3
  • Last published: 2024-09-11