@classmethod
def gcd(cls, *poly_list):
    """
        Computes the greatest common divisor (gcd) of polynomials in a given list.
        """
    gcd = poly_list[0]
    for poly in poly_list[1:]:
        gcd, _, _ = cls.xgcd(gcd, poly)
    return gcd
