(no subject)



Thanks, Robert. I had failed to embed sum in makelist.


Date: Thu, 20 Sep 2012 06:14:19 +0000 (UTC)
From: Robert Dodier <robert.dodier at gmail.com>
To: maxima at math.utexas.edu
Subject: Re: [Maxima] Request re: programming
Message-ID: <k3ec7q$v9a$1 at ger.gmane.org>

On 2012-09-18, 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]);

Seems like makelist handles the third list well enough ... am I missing
something?

 makelist (sum (xi (pList [j], i, 0.1), i, 1, imaxList [j]), j, 1, 3);
  => [50.0, 106.3168145345244, 323.2104443563449]

Hope this helps,

Robert Dodier