-
Notifications
You must be signed in to change notification settings - Fork 139
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
Pattern matching with sets, and (ex-)PolyRatFun CFunction #55
Comments
Hi Josh, There is always a little problem like this. I hope this helps Jos
|
A simple and complete example:
which gives
|
My old
which somehow works. |
I have been trying to print expressions with sub-bracketed terms (using dum_) and wanted the first term to have a +ve sign, ie, take an overall - out of the dum_ if we have to (printed expressions destined for some scripts to produce LaTeX).
I tried:
which doesn't work, which is something to do with coeff being, at some point, a PolyRatFun.
This example, I think, exemplifies the issue. If you replace the final Identify with the commented pair, (no set in the pattern match) it works as expected.
Additionally, if you comment out the Identify statements in the second module, in the third module both expressions are the same (but one has a coeff from PolyRatFun, and the other already had it). In this case, the Identify statement in the final module works on test2, but not on test1.
The text was updated successfully, but these errors were encountered: