-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
manualintegrate DiracDelta #23670
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
manualintegrate DiracDelta #23670
Conversation
|
✅ Hi, I am the SymPy bot (v167). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.11. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
|
Benchmark results from GitHub Actions Lower numbers are good, higher numbers are bad. A ratio less than 1 Significantly changed benchmark results (PR vs master) Significantly changed benchmark results (master vs previous release) before after ratio
[77f1d79c] [f5114602]
<sympy-1.10.1^0>
+ 96.8±0.8ms 177±0.5ms 1.83 sum.TimeSum.time_doit
Full benchmark results can be found as artifacts in GitHub Actions |
| @@ -230,6 +230,8 @@ class is about to be instantiated and it returns either some simplified | |||
| return -cls(-arg, k) | |||
| elif k.is_even: | |||
| return cls(-arg, k) if k else cls(-arg) | |||
| elif k == 0: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| elif k == 0: | |
| elif k.is_zero: |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We know it is an Integer already. (And this is faster with no drawbacks.)
|
Looks good to me. |
3531241 to
6e5e984
Compare
References to other Issues or PRs
#23559 (comment)
Brief description of what is fixed or changed
DiracDelta(..., 0)doesn't evaluate toDiracDelta(...)DiracDelta(a+b*x, n)Other comments
Release Notes