Exact GCD of integer polynomials

Exact GCD of a pair of polynomials is obtained by "elimination of leading polynomial coefficient"

You are now following this Submission

The polynomial GCD of two given polynomials can be found exactly if the polynomial coefficients are all integers.

The process involves only integer arithematic operations. The floating point errors may be completely eliminated.

The expected result is obtained by applying recurrently
"Elemination of leading coefficients of two equal-degree
polynomials." It is modified from "Monic polynomials subtraction," presented previously.

One of the main application is to factorize a integer polynomial with multiple roots.

Cite As

Feng Cheng Chang (2026). Exact GCD of integer polynomials (https://uk.mathworks.com/matlabcentral/fileexchange/21934-exact-gcd-of-integer-polynomials), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0