I am moving from Maple to python for my mathematical programming. As part of this I am trying to work out what the right tools are to perform infinite sums numerically.
I would like to compute numerically for example:
sum(exp(-x^2), x = -infinity..infinity)
In Maple this would just be
evalf(sum(exp(-x^2), x = -infinity..infinity));
1.772637205
Can you do something similar in python, perhaps using the scientific python ecosystem (scipy,numpy, sympy etc)?