ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 07 Jan 2018 01:16:21 +0100Help summing an infinite serieshttps://ask.sagemath.org/question/40512/help-summing-an-infinite-series/I have been trying to evaluate the following series using SageMath.
sum((x^x)/(factorial(x)*exp(x)) - 1/sqrt(2*pi*x), x, 1, +oo).n()
The answer should be -0.084069508727655... (-2/3 - zeta(1/2)/sqrt(Pi)), but I get the following error when the upper limit is above 96:
RuntimeError: maximum recursion depth exceeded while calling a Python object
Is there any way SageMath could give me even the first few digits of the infinite sum? This sum seems to evaluate just fine in Maple and Mathematica, but not in any open source program I have tried, including Axiom, Maxima, PARI, and SymPy.
Any help would be greatly appreciated.
lkklSun, 07 Jan 2018 01:16:21 +0100https://ask.sagemath.org/question/40512/