Hi there ! This week was great. I got to learn about many new things. I have mentioned in my last post, about my goals for this week, let us see what I have done so far.
- In PR 10863, implementation of
_eval_expand_diracdeltais almost done . A final review is needed. But at the same time, I was forgetting about the fact that the
simplifymethod has to be deprecated in order to make things backwards compatible. Thanks Jason for the suggestion.
I have made the
simplify() method call the
_eval_expand_diracdelta() method and raise a deprecation warning. I have also added the tests for this method by catching the deprecation warnings properly. The API works like this:-
In : DiracDelta(x*y).simplify(x) /home/ahappyidiot/anaconda2/bin/ipython:1: SymPyDeprecationWarning: simplify has been deprecated since SymPy 1.0.1. Use expand(diracdelta=True, wrt=x) instead. #!/home/ahappyidiot/anaconda2/bin/python Out: DiracDelta(x)/Abs(y)
These commits are needed to be reviewed properly in order to merge PR 10863.
rewrite(Piecewise):- In PR 11103, I have implemented a new method under DiracDelta class which would successfully output a Piecewise representation of a DiracDelta Object. For this pull request also, a final review is needed. The API works as:-
In : DiracDelta(x).rewrite(Piecewise) Out:⎧ oo for x = 0 ⎨ ⎩ 0 otherwise
In : DiracDelta(x - 5).rewrite(Piecewise) Out:⎧ oo for x - 5 = 0 ⎨ ⎩ 0 otherwise
- I have also reviewed PR 11065, I personally think that the implementation is a great idea.
My plans for next weeks are:-
- Polish both PR 11103 and PR 10863 and get these pull requests merged
- Improve doc strings of the
Heavisideclasses and methods.
I will again get back by the end of the next week. Cheers !!!