MathGroup Archive 2010

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

Search the Archive

Re: maximum of a series


m[i_Integer, n_Integer] := 
 Max[Table[Sum[a[k], {k, i, j}], {j, i, n}]] /; n >= i

m[3, 5]

Max[a[3], a[3] + a[4], a[3] + a[4] + a[5]]


Bob Hanlon

---- olfa <olfa.mraihi at yahoo.fr> wrote: 

=============
Hi Mathematica Community,

how can I represent for example
the maximum of the summations :sum[a[k],{k,i,j}] where j varies from i
to n?

Thank you




  • Prev by Date: Spreadsheet Functionality in V8?
  • Next by Date: Re: maximum of a series
  • Previous by thread: maximum of a series
  • Next by thread: Re: maximum of a series