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

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/cc339841-178b-4e41-a98d-f8391b2c9286%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to