MathGroup Archive 2001

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

Search the Archive

Re: Sum


In a message dated 2001/7/29 9:38:17 PM, ts at tsts.com writes:

>let n be an integer >=1. Let us consider the following sums:
>
>s(1)= P[1]Log[P[1]]
>s(2)= P[2]Log[P[2]]+P[1]log[P[2]+P[1]]
>s(3)= P[3]Log[P[3]]+P[2]Log[P[3]+P[2]]+P[1]Log[P[3]+P[2]+P[1]]

There was no question so I am guessing that you want a definition of s[n]

s[n_Integer?Positive] := Sum[P[k]*Log[Sum[P[m], {m, k, n}]], {k, 1, n}];

If not, resend your e-mail.


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: non-linear regression
  • Next by Date: Formatting numbers on Plot axis
  • Previous by thread: Sum
  • Next by thread: Re: Sum