-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
sage.symbolic.expression.Expression.collect has no documentation #11839
Comments
Author: Michael Orlitzky |
Reviewer: Karl-Dieter Crisman |
comment:2
I think that this is pretty good overall, but the random test is a little weak, because they are very small polys. Check out a few! Instead,
gives us a more robust one. Can you think of even more crazy ones? We could do arbitrarily wacky ones... but at least this show the collect in action; the current test rarely does, as far as I can tell. |
comment:3
I left it kind of simple because I've seen expression equality fail on some "easy" cases. A result of In that regard the test is only correct if it's going to generate very simple (i.e. comparable) expressions. We could go higher than the default of degree 2 probably, but I didn't feel like spending too much time thinking about it, either. |
comment:4
??? I'd like to see this. I think that the kind of examples that the code I posted would generate shouldn't have that happen - we're not talking complicated polynomials here.
Well, considering that the current tests don't actually generate expressions that have anything to collect, I'd prefer at least something with two variables. |
comment:5
I was worried about things like,
and the fact that the relevant Ginac code calls expand:
but I think I've convinced myself that this won't matter because we'll be expanding zero in that last statement. Patch has been updated. |
comment:6
This fixes part of #9046, incidentally. |
comment:7
The patchbot and myself gets some small fuzz, however I don't know offhand which patch this needs to be rebased off:
Also could you please remove all trailing whitespace and remove the dollar signs |
Changed reviewer from Karl-Dieter Crisman to Karl-Dieter Crisman, Travis Scrimshaw |
Attachment: sage-trac_11839.patch.gz Clean up whitespace, math-mode, and fuzz |
comment:8
The fuzz was on the blank line before I've fixed the other issues as well, thanks for taking a look. |
comment:9
Looks good to me. Thanks. |
Merged: sage-5.6.beta0 |
The documentation for Expression.collect() has examples, but doesn't actually tell you what it's supposed to do.
Component: documentation
Author: Michael Orlitzky
Reviewer: Karl-Dieter Crisman, Travis Scrimshaw
Merged: sage-5.6.beta0
Issue created by migration from https://trac.sagemath.org/ticket/11839
The text was updated successfully, but these errors were encountered: