'Sympy strange summation simplification
I had a long math expression involving
which I wanted to simplify using sympy. I received an output that I didn't quite get. It turned out that the problem appears when I want to simplify the above expression, so
from sympy import IndexedBase, Symbol, Sum, exp
x = IndexedBase('x')
i = Symbol('i', integer=True)
n = Symbol('n', integer=True)
t = Symbol('t', real=True)
(1/n*Sum(exp(t*x[i]), (i, 1, n))).simplify()
gives
What is c1, c2, c3? The expression can't be simplified so what's this output actually?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


