[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread Robert Dodier
philabuster wrote: > This ordering makes it extremely difficult to do index association > from the j-th term of the expansion back into constituent indices of > each sum (i0,i1,i2,i3); Well, Sage punts to Maxima (for the moment, anyway) to compute the expansion. The terms are computed in the ord

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread Robert Dodier
ma...@mendelu.cz wrote: > You can use commands orderless and ordergreat in Maxima to change the > default behavior. For the record, I recommend against that; it's not really the right way to resolve this problem. I'll post another message with a different resolution. Robert Dodier --~--~--

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread ma...@mendelu.cz
On 23 Dub, 20:38, William Stein wrote: > New symbolics also tend to be easier to work with term-by-term: > > sage: v = expand((a0+a1)*(b0+b1)) > sage: v[0] > a0*b0 > sage: v[1] > a0*b1 > sage: v[2] > a1*b0 > sage: v[3] > a1*b1 - Maxima 5.13.0 http:/

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread ma...@mendelu.cz
On 23 Dub, 20:38, William Stein wrote: > On Thu, Apr 23, 2009 at 6:44 AM, philabuster wrote: > > > Hi, > > > I was wondering why Sage expands products of sums in an unexpected > > order: > > > var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4') > > The ordering of these terms is determined by max

[sage-support] Re: Symbolic algebra expansion of products of sums

2009-04-23 Thread William Stein
On Thu, Apr 23, 2009 at 6:44 AM, philabuster wrote: > > Hi, > > I was wondering why Sage expands products of sums in an unexpected > order: > > var('a0,a1,b0,b1,b2,c0,c1,c2,c3,d0,d1,d2,d3,d4') The ordering of these terms is determined by maxima -- Sage doesn't control that at all, just leaving t