MathGroup Archive 2008

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

Search the Archive

Re: Summation question

  • To: mathgroup at
  • Subject: [mg85743] Re: [mg85664] Summation question
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Wed, 20 Feb 2008 07:06:10 -0500 (EST)
  • References: <>

On Feb 19, 2008, at 1:47 AM, Robert Pigeon wrote:

> Good day all,
>             I want to make a summation like this:  Sum[f[i],{i, start,
> finish}]. What I want is that the sum be over a specific set like
> {1,3,5,7,11,13}. So the sum would be : f[1]+f[3]+f[5]+f[7]+f[11]+f 
> [13]. The
> set I want to use is the primes. So, how do I use, if possible, Sum  
> over a
> specific set ?

One way is to map the sum indices to the set elements eg:


but this may present problems if the sum is over an infinite range.



  • Prev by Date: Re: Scoping question
  • Next by Date: Inset headache
  • Previous by thread: Summation question
  • Next by thread: Re: Re: Summation question