How do I get Derivative(0,t) simplified? In my code below, I used subs to substitute 0 for b(t) in a formula,
a(t)*Derivative(b(t), t) + Derivative(a(t), t)
Then I got
a(t)*Derivative(0, t) + Derivative(a(t), t)
whereas the answer I want is:
Derivative(a(t), t)
------------
from sympy import *
from sympy.physics.vector import *
from sympy.physics.mechanics import *
a=dynamicsymbols('a')
a_d=dynamicsymbols('a',1)
b=dynamicsymbols('b')
b_d=dynamicsymbols('b',1)
expr = a*b_d + a_d
print expr
expr2 = expr.subs(b, 0)
print expr2
print simplify(expr2)
------------