MathGroup Archive 2002

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

Search the Archive

Sum expansion

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32630] Sum expansion
  • From: Cyril Fischer <fischerc at itam.cas.cz>
  • Date: Fri, 1 Feb 2002 02:02:33 -0500 (EST)
  • Organization: Inst. of Theoretical and Applied Mechanics
  • Sender: owner-wri-mathgroup at wolfram.com

I would like to arrange exression
A Sum [ B_i ,{i,1,s}]
into expression
Sum [ A B_i, {i,1,s} ]

Following transformation code gives unwanted answer:
A*Sum[Subscript[B, i], {i, 1, s}] /.
  a_*Sum[b_, {i, 1, s}] -> Sum[a*b, {i, 1, s}]
Result is
A s Bi

I understand, why it behawes this way, but I dont know the correct way.

Thanks for your hints,
Cyril



  • Prev by Date: Re: redefine Power[A_?MatrixQ,-1]
  • Next by Date: Re: redefine Power[A_?MatrixQ,-1]
  • Previous by thread: RE: redefine Power[A_?MatrixQ,-1]
  • Next by thread: Re: Sum expansion