MathGroup Archive 2012

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

Search the Archive

Splitting sums in mathematica


Hello,

Does anyone know of a way to algebraically split sums (if that is the
correct name for it) in mathematica? I need to do the following (and
higher-order versions of the same)...

Sum_over_p [  Sum_over_q (  a_p * a_q  )   ] = Sum_over_p_equal_q
(a_p^2) + Sum_over_p_not_equal_q (a_p*a_q)

...in other words, turn a nested sum running over two indices into two
sum, one for when the indices are equal, and one for when they are
different?

I then need to make some substitutions once there are no nested sums
and simplify my answer. I have an equation with many hundreds of terms
in it, so doing it by hand is not an option. I can send a typeset
example if anyone needs clarification

I have version 5.2 for students

Thanks in advance

James



  • Prev by Date: Re: some Experience with webMathematica
  • Next by Date: Re: Bug in Spherical Plot 3D, Mathematica version 7
  • Previous by thread: Re: SmoothHistogram and Legends
  • Next by thread: Re: Splitting sums in mathematica