powered by
Identify unique poles and their associated multiplicity.
mpoles(p, tol = 0.001, reorder = TRUE, index.return = FALSE)
vector of poles.
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.
tol
logical. If TRUE, (default), the output is ordered from largest pole to smallest pole.
TRUE
logical indicating if index vector should be returned as well. See examples. Default: FALSE.
FALSE
If index.return = TRUE, a list consisting of two vectors:
index.return = TRUE
vector specifying the multiplicity of the poles
index
If index.return = FALSE, only m is returned (as a vector).
index.return = FALSE
m
poly, residue
poly
residue
# NOT RUN { p <- c(2, 3, 1, 1, 2) ret <- mpoles(p, index = TRUE) # }
Run the code above in your browser using DataLab