-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Simplifications in Dirac Delta function #12257
Comments
It seems that something like this has been implemented in deltaintegrate. Maybe that could be expanded. |
@jksuom , yes you are right, I think we can do something similar here too.
This is the code in delta_functions.py which canbe used. |
@jksuom , should I proceed with this issue ? |
The functionality exists already though it may look a bit clumsy:
I'm not sure if the conversion |
@jksuom Yes, that is the whole point of this issue . The existing functionality is clumsy and could be shortened when we arguments of DIrac Delta as like "2*x" , "-x" etc . Here simply we write like (using the property of DIracDelta)
So what do you think ? |
The trig functions automatically canonicalize negative signs, so there is precedent. We should definitely have a way to do it the only question is if it should be automatic or not. I'm not sure if many practical applications create delta functions that aren't of the form |
It seems that the principal means of producing Dirac deltas in SymPy is |
It seems that the Dirac Delta function might be more useful if certain simplifications can be done.
For Example:
DiracDelta(-x).expand(diracdelta=True, wrt=x)
. As of now we have thisWhat I hope after this issue would be
DiracDelta(2*x).expand(diracdelta=True, wrt=x)
We can have the existing way when more than one variables are involved . For constants, we can include it in basic cases.
I have read the code regarding this and it would be really nice , if someone could guide me in this.
The text was updated successfully, but these errors were encountered: