MathGroup Archive 2010

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

Search the Archive

Re: maximum of a series

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114134] Re: maximum of a series
  • From: olfa <olfa.mraihi at yahoo.fr>
  • Date: Wed, 24 Nov 2010 07:01:44 -0500 (EST)
  • References: <ic9lfd$o01$1@smc.vnet.net>

On 21 nov, 00:26, Bob Hanlon <hanl... at cox.net> wrote:
> m[i_, n_] == HoldForm[Max[Table[Sum[a[k], {k, i, j}], {j, i, n}]]];
>
> m[i, n]
>
> HoldForm[Max[Table[Sum[a[k], {k, i, j}], {j, i, n}]]]
>
> m[3, 5]
>
> HoldForm[Max[Table[Sum[a[k], {k, 3, j}], {j, 3, 5}]]]
>
> % // ReleaseHold
>
> Max[a[3], a[3] + a[4], a[3] + a[4] + a[5]]
>
> Bob Hanlon
>
> ---- olfa mraihi <olfa.mra... at yahoo.fr> wrote:
>
> =========================
==
> Thank you Bob for the reply,
> =C2
> I tried to use Table but the problem is that I need to use it symbolicall=
y =
> (without having values for i and n) which means
> Max[Table[Sum[a[k], {k, i, j}], {j, i, n}]]
> but unfortunately=C2 I=C2 get this error :Iterator {j,i,n} does not h=
av=
> e appropriate bounds
> =C2
> so how to deal with that?
> =C2
> Regards,
>
> --- En date de=C2 : Ven 19.11.10, Bob Hanlon <hanl... at cox.net> a =C3=
=A9cr=
> it=C2 :
>
> De: Bob Hanlon <hanl... at cox.net>
> Objet: Re:  maximumof a series
> =C3=80: "olfa" <olfa.mra... at yahoo.fr>, mathgr... at smc.vnet.net
> Date: Vendredi 19 novembre 2010, 16h22
>
> 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.mra... at yahoo.fr> wrote:
>
> =========================
==
> Hi Mathematica Community,
>
> how can I represent for example
> themaximumof the summations :sum[a[k],{k,i,j}] where j varies from i
> to n?
>
> Thank you
>
> --
>
> Bob Hanlon

I can't use holdform because I need to use reduce to reason about it


  • Prev by Date: Re: "OpenCLLink block size is invalid"
  • Next by Date: Re: Loading portion of large HDF5 array?
  • Previous by thread: Re: maximum of a series
  • Next by thread: Re: maximum of a series