GCD {polyMatrix} | R Documentation |
GCD for polynomial matrices
Description
The greatest common divisor of polynomials or polynomial matrices.
Usage
GCD(...)
## S4 method for signature 'polyMatrix'
GCD(...)
Arguments
... |
a list of polynomial objects |
Methods (by class)
-
polyMatrix
: the greatest common divisor of all elements of the polynomial matrix
See Also
polynomial implementation polynom::GCD()
and LCM()
Examples
# GCD of polynomial matrix
GCD(parse.polyMatrix(
" 1 - x, 1 - x^2, 1 + 2*x + x^2",
"x - x^2, 1 + x, 1 - 2*x + x^2"
)) ## 1
[Package polyMatrix version 0.9.16 Index]