MathGroup Archive 2010

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

Search the Archive

Re: maximum of a series


On 20 nov, 12:10, Bill Rowe <readn... at sbcglobal.net> wrote:
> On 11/19/10 at 5:08 AM, olfa.mra... at yahoo.fr (olfa) wrote:
>
> >how can I represent for example themaximumof the summations
> >:sum[a[k],{k,i,j}] where j varies from i to n?
>
> I will take your "represent" as "determine". That is I take your
> question to be how to find themaximumof the partial sums that
> are (in principle) formed when evaluating
>
> Sum[a[k],{k,i,j}]
>
> If I have this correct, I suggest
>
> Max@Accumulate@Table[a[k], {k,i,j}]
>
> Evaluation of Sum only returns the final sum not any of the
> intermediate sums (which Mathematica may not actually compute).
> I've used Table to create each of the a[k] terms and Accumulate
> to compute the partial sums.

what I need exactly is to solve this system for m using reduce,
Max[m, s + Max[Table[Sum[a[index2], {index2, i, index1}], {index1, i,
N}]]] ==
  Max[m, t + Max[Table[Sum[a[index2], {index2, j, index1}], {index1,
j, N}]]]

but I have the error: iterator in Table does not have appropriate
bounds


  • Prev by Date: Re: elementary import
  • Next by Date: Re: "OpenCLLink block size is invalid"
  • Previous by thread: Re: maximum of a series
  • Next by thread: Re: maximum of a series