Could you clarify in what way you want to generalize? Do you want a nested
sum? Do you want a list of results instead of a single result?
On Tue, Sep 18, 2012 at 1:33 PM, Mixon, Wilson <wmixon at berry.edu> wrote:
> /*Functions*/
> pi(p,a):=floor(p^(1/a)/30^(1/a));
> xi(p,i,a):=5*p/(3*i^a);
> /*Lists*/
> pList:makelist(30+3*(i-1),i,1,3);
> imaxList: pi(pList,0.1);
> /*Summation that I'd like to generalize to a third list*/
> sum(xi(pList[1],i,.1),i,1,imaxList[1]);
> sum(xi(pList[2],i,.1),i,1,imaxList[2]);
>