f cancelcoeff g poly f,g; Factor out the gcd of the coefficients. Example: (6 x^2 - 10 x). cancelCoeff See also gbext.