Learn R Programming

polyMatrix (version 0.9.16)

GCD: GCD for polynomial matrices

Description

The greatest common divisor of polynomials or polynomial matrices.

Usage

GCD(...)

# S4 method for 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

Run this code
# NOT RUN {
# 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

# }

Run the code above in your browser using DataLab