New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x*DiracDelta(x) does not simplify to 0 #13996
Comments
I would like to work on this. |
As far as I know, the only thing that knows anything about DiracDelta is integrate (mathematically, DiracDelta doesn't even make sense outside of an integral, although SymPy allows that as a formalism). I'm not sure what existing method should do it. |
It could probably be done by
It would be automatic, but I don't think any harm would follow. |
Wouldn't that defeat the purpose of deltaintegrate? |
It seems to me that deltaintegrate aims to deal with expressions of the form δ(f(x)) (inverse image under f of δ considered as a generalized density). Straightforward multiplication could be handled in DiracDelta class with δ regarded as a distribution. It is possible to multiply δ(x) by a function but not by itself. That could be taken care of by a local |
I also want to note that from a technical point of view, I'm not very convinced that the current ways of doing such things are well designed (c.f. #13161). |
Neither
simplify
, norexpand_func
, not other methods I tried could turnx*DiracDelta(x)
into 0.Well, except for the absurd "integrate and then differentiate" trick.
Reported on Stack Overflow
The text was updated successfully, but these errors were encountered: