Hello everyone. Here is the update of my work in the third week of GSoC.
Unlike last week, this week clarified some of the real problems of our implementation of rubi.
I began to freshly test trinomial products after getting the older test-suite.
Initially, I came across the problem of Coeff and Sum. I solved this by redefining Coeff and introducing a function Sum_doit. After this, I realised With statement was not being parsed correctly for many cases. Parsetools was improved to take care of the with statements.
After this, I encountered with some utility functions where the output was not as expected. This is the major cause of the failing tests. Constraints too are affected by this. I tried to find and solve as much as possible. I have to trace all functions in cases of failing tests and compare the output with Mathematica. I improved few utility functions and updated in the PR. Also, there were some exceptions in Matchpy, where constraints were being checked taking x as a numerical value. It resulted in TypeErrors. So I updated the constraints in such a way that it avoids such exceptions.
After all this and some small changes, I almost have tested half of the trinomial products in the test-suite. Some issues are not solved yet, like :
- Sorting of variables.
- Not implemented error in apart of sympy.
- And few rules, which are not well defined.
Here is the brief work of this week:
- Solved the issue of Sum and Coeff.
- improved parsetools for with statements.
- little modification to constraints definition.
- improved utility functions
- minor changes in parsetools.
I was supposed to completely test trinomial products within this week. I tried hard, but the debugging part is time taking. Finding the real issue for failing test, takes time. Also, it needs to be compared with Mathematica. But the good thing is that, after finding the issue and fixing it, tests are passing. So after this week, I can say that if we are good with our utility functions, we will be able to test more than 90% of the original rubi test suite.
In the upcoming week, I will do more testing and complete trinomial products.