hello,
2 questions related to reducing to summation using sympy:
1) lets say i have an expression (x) + (x+1) + (x+2) + (x+3) + (x+4)
is there any function to help me simplify/reduce it to become summation of x over 0 to 4?
along the same line:
2) lets say i have an expression (x[0]*y[0]) + (x[1]*y[1]) + (x[2]*y[2]) + (x[3]*y[3]) + (x[4]*y[4]),
is there any function to help me simplify/reduce it to become summation of x[i]*y[i] over 0 to 4?
perhaps it can't be done in the raw form above, maybe i need to use some annotations or use certain types of special symbols?
NM