How can I use sympy sum over elements of a list in python?
How can I use sympy sum over elements of a list in python? Question: I am just trying to use a sympy sum over a list of elements, for example: x = [1,2,3,4,5] expression = sympy.sum(x[i], (i,0,2)) * sympy.sum(x[j], (j,1,3)) and I just want it to numerically evaluate this. I always get index out of …