I'm a beginner on mathematica.. I'm trying to calculate a simple sum of a function,
F1[n_]:=NSum[(V^2*8)/d^2*(I*ω[m]-I*Sign[ω[m]]*Sqrt[(ω[m])^2 +
(d/2)^2])*1/(I*ω[m]+I*ν[n]-Σf), {m, -Infinity, Infinity}]
Where:
ω[n_] := ((2*n + 1)*π)/β
ν[n_] := (2*n*π)/β
d=12
V=0.25
Σf = 1 + I
β=1
For n=2, for example. But when I try to do this it returns an error message:
"Summand (or its derivative)...is not numerical at point m = 15 "
But when I choose upper and lower bound of simulation with the function:
F2[n_, min_, max_] :=NSum[(V^2*8)/d^2*(I*ω[m] -
I*Sign[ω[m]]*Sqrt[(ω[m])^2 + (d/2)^2])*1/(I*ω[m] + I*ν[n] - Σf), {m, min, max}]
Mathematica returns a value for small limits, for example:
F2[2, -10, 10] = 0.000757504 - 0.00143062 I
But, for:
F2[2, -100, 100]
I have a similar error mensage.
"Summand (or its derivative)...is not numerical at point m = -85."
I will be grateful if someone help-me on this calculations of infinity sum.