Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Order of terms

  • To: mathgroup at
  • Subject: [mg77655] Order of terms
  • From: Thomas Madden <thomas.madden at>
  • Date: Thu, 14 Jun 2007 05:35:06 -0400 (EDT)


In[1]:= c[p_] := Sum[Subscript[a, k]* Subscript[b, n - k], {n, 0, p}, {k, 0,

How can I get the output in the same order that the double sum is written?
For example I would like to have the output from c[2] be

In[3]:= Hold[Subscript[a, 0]Subscript[b, 0]+Subscript[a, 0]Subscript[b,
1]+Subscript[a, 1]Subscript[b, 0]+Subscript[a, 0]Subscript[b,
2]+Subscript[a, 1]Subscript[b, 1]+Subscript[a, 2]Subscript[b, 0]]

rather than the default


Thanks in advance for any and all replies.


  • Prev by Date: Modifying values in the PhysicalConstants package
  • Next by Date: Re: Axis missing from simple ListPlot
  • Previous by thread: Modifying values in the PhysicalConstants package
  • Next by thread: Re: Order of terms