i1 : R = QQ[x,y] o1 = R o1 : PolynomialRing
i2 : terms (x+2*y-1)^2 2 2 o2 = {x , 4x*y, 4y , -(2x), -(4y), 1} o2 : List
See also coefficients.