Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Parametrically varying summation intervals' topicStudent Support Forum > General > "Parametrically varying summation intervals"

Next Comment >Help | Reply To Topic
Author Comment/Response
11/22/12 3:20pm


I am trying to perform a sum over a certain function, here written, where my summing intervals are parametric: I have nP occupation numers Subscript[n, j], my sum has to sum my expression over a certain interval for the first l occupation numbers and over another interval for the other (np-l) occupation numbers. Any help over this is much appreciated. The function has the occupation numbers as variables.

The problem is enclosed. And as one can test for several values of the testing function DoMySumPartition, it does not work

DoMySumPartition[l_, i_, np_,
nP_] := (myexp = Product[ztot[j, Subscript[n, j]], {j, 1, nP}]*
Sum[Subscript[n, j], {j, 1, nP}] - np];
For[s = 1, s <= i, s++,
myexp = Sum[myexp, {Subscript[n, s], 0, l }]];
For[s = i + 1, s <= nP, s++,
myexp = Sum[myexp, {Subscript[n, s], 0, np - l}]];

Attachment: help request.nb, URL:,

Subject (listing for 'Parametrically varying summation intervals')
Author Date Posted
Parametrically varying summation intervals Salvo 11/22/12 3:20pm
Re: Parametrically varying summation intervals Bill Simpson 11/29/12 4:10pm
Next Comment >Help | Reply To Topic