I am trying to find the numerical value of $\displaystyle \sum_{n=1}^\infty \frac{e^{-n^2/\pi^2}}{n^2}$ up to 50 digits. I used
NSum[E^(-n^2/Pi^2)/n^2, {n, 1, Infinity}, WorkingPrecision -> 50]
and it came out
1.13140507512163903524627544669011642283
How to get the other digits? Thanks
N[Total@Table[N[E^(-n^2/Pi^2)/n^2, 60], {n, 1, 35}], 50]
, where the truncation atn = 35
is found with something likeNSolve[E^(-n^2/Pi^2)/n^2 == 1/2*10^-51]
, due to the rate at which the terms decrease. $\endgroup$N[Sum[E^(-n^2/Pi^2)/n^2, {n, 1, Infinity}], 50]
, but it fails. $\endgroup$NSum[E^(-n^2/Pi^2)/n^2, {n, 1, Infinity}, WorkingPrecision -> 80, NSumTerms -> 25]
seems to work. $\endgroup$