sage: R.<x,y,z>=PolynomialRing(QQ,'x,y,z') sage: w=3/5*x*y+5*y+3*z sage: w.monomials() [x*y, y, z] sage: w1=3*x^2 sage: w1.monomials() [x^2]
On 16 Kwi, 07:00, tvn <nguyenthanh...@gmail.com> wrote: > given an expression f of the form c1*t1 + c2*t2 + .. +cn*tn, I want to > extract from f the list of 'terms' [t1..tn] .. is there some Sage function > that can help do this ? Thanks , > > For example > > 3/5*x*y + 5*y + 3*z > [x*y,y,z] > 3*x^2 -> [x^2] > x*y -> [x*y] -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org