MathGroup Archive 2010

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

Search the Archive

Re: maximum of a series

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114004] Re: maximum of a series
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 20 Nov 2010 06:14:24 -0500 (EST)

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