next | previous | forward | backward | up | top | index | toc | home

terms -- provide a list of terms of a polynomial

Synopsis

Description

Each term is an element of the coefficient ring A, multiplied with a monomial in the variables of R.
i1 : R = QQ[a..d];
i2 : terms(a+d^2-1+a*b*c)

              2
o2 = {a*b*c, d , a, -1}

o2 : List
In the situtation where the ring is a polynomial ring over another polynomial ring, the polynomial is split using the monomials of the outer ring.
i3 : S = R[x,y];
i4 : terms(a*x+b*x+c*x*y+c*x^3+1+a)

         3
o4 = {c*x , c*x*y, (a + b)x, a + 1}

o4 : List

See also

Ways to use terms :