-1

I need to find the limit of

symsum(expression,variable,-Inf,Inf)

It gives error. How I can solve.

pjs
  • 18,696
  • 4
  • 27
  • 56
viz
  • 15
  • 6

1 Answers1

1

Split the summation range in two. For example, to sum 1/(k+1/2)^2 for k ranging from -inf to inf:

>> syms k
>> S = symsum(1/(k+1/2)^2,1,inf) + symsum(1/(-k+1/2)^2,0,inf)
S =
pi^2
Luis Mendo
  • 110,752
  • 13
  • 76
  • 147