Hi, does anyone know how to properly integrate this indexed sum for an xi
term that is also present in the sum indexed by j below?
```
i, j, C = sp.symbols('i, j, k, C', integer=True)
x = sp.IndexedBase('x')
dF_dxi = x[i] + sp.Sum(x[j], (j, 1, C))
Fxi = sp.integrate(dF_dxi, x[i])
# result: x[i]**2/2 + x[i]*Sum(x[j], (j, 1, C))
```
It seems the integration does not realize that one of the xj terms in the
sum is an xi since it assumes the indices don't ever intersect even though
these are both defined as integers.
--
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 view this discussion visit
https://groups.google.com/d/msgid/sympy/cbf469c4-f5e7-4094-b20f-8ebc200ed2d6n%40googlegroups.com.