Thankx a lot. On 2 December 2011 02:18, Laurent <moky.m...@gmail.com> wrote: >> sage: x0,x1,x2,x3,x4,x5,x6,x7,x8,x9 = var('x0,x1,x2,x3,x4,x5,x6,x7,x8,x9') >> sage: S = 1*x1 + 2*x3 + 3*x4 + 4*x5 + 5*x7 + 6*x9 >> sage: S.variables() >> (x1, x3, x4, x5, x7, x9) > > > By the way : > > sage: x=var('x') > sage: S=sin(x)**2+cos(x)**2 > sage: S.variables() > (x,) > sage: S.simplify_trig().variables() > () > > thus one has to be somewhat careful. > > Laurent > > > -- > 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
-- 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