Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
edits to post and tags/greek symbols
Source Link
Syed
  • 59.5k
  • 5
  • 40
  • 95

I have following summation that I want to implement inusing Mathematica,:

Sum[If[mSum[
 If[m == 0 && n == 0
  , Nothing
  Nothing, (1/
        z^2 + (1/(z - (m 2 \[Pi]π + n 2 \[Pi]π \[Tau]τ))^2 - 
         1/((m 2 \[Pi]π + 
              n 2 \[Pi]π \[Tau]τ))^2) /. {z -> \[Pi]π \[Tau]τ}) - (1/
        z^2 + (1/(z - (m 2 \[Pi]π + n 2 \[Pi]π \[Tau]τ))^2 - 
         1/((m 2 \[Pi]π + n 2 \[Pi]π \[Tau]τ))^2) /. z -> \[Pi]π) // 
   Simplify]Simplify
  ], {m, -Infinity, Infinity}, {n, -Infinity, Infinity}
 ]

Above code returns a nicethe following result:

$-\frac{2 \left(\tau ^2-1\right)}{\pi ^2 \tau ^2}$

However, but if I remove the ifIf command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression is finite when m=0&&n=0 is finite. What's going on here?

I have following summation that I want to implement in Mathematica,

Sum[If[m == 0 && n == 0, 
  Nothing, (1/
        z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
         1/((m 2 \[Pi] + 
             n 2 \[Pi] \[Tau]))^2) /. {z -> \[Pi] \[Tau]}) - (1/
        z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
         1/((m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2) /. z -> \[Pi]) // 
   Simplify], {m, -Infinity, Infinity}, {n, -Infinity, Infinity}]

Above code returns a nice result, but if I remove the if command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression when m=0&&n=0 is finite. What's going on here?

I have following summation that I want to implement using Mathematica:

Sum[
 If[m == 0 && n == 0
  , Nothing
  , (1/z^2 + (1/(z - (m 2 π + n 2 π τ))^2 - 
         1/((m 2 π + 
              n 2 π τ))^2) /. {z -> π τ}) - (1/
        z^2 + (1/(z - (m 2 π + n 2 π τ))^2 - 
         1/((m 2 π + n 2 π τ))^2) /. z -> π) // 
   Simplify
  ], {m, -, }, {n, -, }
 ]

Above code returns the following result:

$-\frac{2 \left(\tau ^2-1\right)}{\pi ^2 \tau ^2}$

However, if I remove the If command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression is finite when m=0&&n=0. What's going on here?

added 52 characters in body
Source Link
Vayne
  • 101
  • 5

I have following summation that I want to implement in Mathematica,

Sum[Sum[If[m == 0 && n == 0, 
  Nothing, (1/
        z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
         1/((m 2 \[Pi] + 
             n 2 \[Pi] \[Tau]))^2) /. {z -> \[Pi] (\[Tau] + 1)}) - (1/
        z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
         1/((m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2) /. z -> \[Pi]) // 
  Simplify Simplify], {m, -Infinity, Infinity}, {n, -Infinity, Infinity}]

Above code returns a nice result, but if I remove the if command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression when m=0&&n=0 is finite. What's going on here?

I have following summation that I want to implement in Mathematica,

Sum[(1/z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
        1/((m 2 \[Pi] + 
            n 2 \[Pi] \[Tau]))^2) /. {z -> \[Pi] (\[Tau] + 1)}) - (1/
       z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
        1/((m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2) /. z -> \[Pi]) // 
  Simplify, {m, -Infinity, Infinity}, {n, -Infinity, Infinity}]

Above code returns a nice result, but if I remove the if command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression when m=0&&n=0 is finite. What's going on here?

I have following summation that I want to implement in Mathematica,

Sum[If[m == 0 && n == 0, 
  Nothing, (1/
        z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
         1/((m 2 \[Pi] + 
             n 2 \[Pi] \[Tau]))^2) /. {z -> \[Pi] \[Tau]}) - (1/
        z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
         1/((m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2) /. z -> \[Pi]) // 
   Simplify], {m, -Infinity, Infinity}, {n, -Infinity, Infinity}]

Above code returns a nice result, but if I remove the if command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression when m=0&&n=0 is finite. What's going on here?

Source Link
Vayne
  • 101
  • 5

Summation question?

I have following summation that I want to implement in Mathematica,

Sum[(1/z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
        1/((m 2 \[Pi] + 
            n 2 \[Pi] \[Tau]))^2) /. {z -> \[Pi] (\[Tau] + 1)}) - (1/
       z^2 + (1/(z - (m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2 - 
        1/((m 2 \[Pi] + n 2 \[Pi] \[Tau]))^2) /. z -> \[Pi]) // 
  Simplify, {m, -Infinity, Infinity}, {n, -Infinity, Infinity}]

Above code returns a nice result, but if I remove the if command in the above summation, Mathematica doesn't do the summation anymore, but I know the above expression when m=0&&n=0 is finite. What's going on here?