I can't understand behavior of sympy.integrate()
function. The simplest example, integrate and differentiate:
t = sy.Symbol('t')
t1 = sy.Symbol('t1')
f = sy.Function('f')(t)
I = sy.integrate(f, (t, 0, t1))
f1 = I.diff(t1)
print f1
prints the following:
f(t1) + Integral(0, (t, 0, t1))
But I expect to see just f(t)
. Calling f1.simplify()
does not help.
Why does not sympy symplify the second term? How do I kill it?