Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*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 smc.vnet.net
  • Subject: [mg77655] Order of terms
  • From: Thomas Madden <thomas.madden at sbcglobal.net>
  • Date: Thu, 14 Jun 2007 05:35:06 -0400 (EDT)

Given


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



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


c[2]

Thanks in advance for any and all replies.

Thomas


  • 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