Dirac delta doesn't get simplified by `assuming`
icarosadero opened this issue · comments
Minimal example:
import sympy as sp
δ = sp.DiracDelta
x = sp.symbols('x', positive=True)
u = δ(x-1)
with sp.assuming(sp.Q.positive(x-1)):
print(u)
The output is still
The operation should be
In [18]: refine(u, Q.positive(x-1))
Out[18]: δ(x - 1)
There are many similar issues about this. The new assumptions and the evaluation code do not interact.