I cannot get sympy
to simplify xδ(x)
to 0, where δ
is DiracDelta.
In : simplify(x*DiracDelta(x))
Out: x⋅δ(x)
Is there another simplification procedure that will evaluate the terms in the coefficient of the Dirac function at the zeros of its argument and check if they disappear?
This would be useful in constructing piecewise functions, such as f(x)= x H(x)
(where H is the Heaviside function), the derivative of which should be H(x)
, but x⋅δ(x) + Heaviside(x)
in sympy
. Mathematica simplifies xδ(x)
to 0.
source
share