Maxima Function
ezgcd (p_1, p_2, p_3, ...)
Returns a list whose first element is the g.c.d of the polynomials p_1, p_2, p_3, ... and whose remaining elements are the polynomials divided by the g.c.d. This always uses the ezgcd algorithm.
ezgcd