GCD {polyMatrix} | R Documentation |
The greatest common divisor of polynomials or polynomial matrices.
GCD(...)
## S4 method for signature 'polyMatrix'
GCD(...)
... |
a list of polynomial objects |
polyMatrix
: the greatest common divisor of all elements of the polynomial matrix
polynomial implementation polynom::GCD()
and LCM()
# 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