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
Term order discrepancy in random test on OS X #9582
Comments
comment:1
Unlikely that this has anything to do with #9514. The symptom of #9514 was getting totally different terms, and the cause was that it made a list of all known symbolic functions [sin, cos, factorial, ...], and randomly picked the third element (say) from the list -- but on different systems, the third element might be factorial, or it might be cos. If it's producing mathematically equal terms that only print differently, which seems to be the case here, the cause is probably some system dependency in the pynac simplification or printing routines. |
comment:2
Evaluating
Is this representative of the underlying problem? |
comment:4
On Sage 4.4.4 on OS X 10.6:
So this may have been a problem for a while? |
comment:5
Maybe so. Maybe it was just exposed with new tests? |
comment:6
If we decide that the actual problem (different printing across platforms) is not a regression, and doesn't have to be fixed in this release, then I've attached a patch that works around the problem (by modifying the doctest to produce an output that prints the same on my Linux box and on bsd.math). If you do apply my patch, then either this ticket should not be closed, or another one should be opened about the printing order issue. |
Author: Carl Witty |
Reviewer: Mitesh Patel |
comment:7
Replying to @sagetrac-cwitty:
This seems reasonable. Are there any objections? The workaround patch works for me on bsd, sage, and t2.math.
I'll give this ticket a positive review, merge it in 4.5.2.rc0, close it, and open a new one for the printing order problem. |
Merged: sage-4.5.2.rc0 |
comment:9
Replying to @sagetrac-cwitty:
I've opened #9632. |
comment:10
Burcin, since we haven't released 4.5.2.rc0 yet, I'm happy to make changes to it, e.g., merging a different patch. Just let us know within a day or so. I apologize for not giving you more time to examine this ticket. |
comment:11
I've "qfinished" 4.5.2.rc0, and we will release it soon. Shall we continue at #9632? |
comment:12
Yes, I couldn't see any quick fix which wouldn't effect performance. Ordering of the terms is already a big performance bottleneck in Python. I'd like to fix things properly once instead of adding kludges all around, but I don't have time to do that right now. I've been sidetracked by other pynac problems since. Sorry for keeping quiet all this time and thanks for your efforts. |
Reported by John Palmieri on sage-release:
Acccording to Dan Drake:
Related: #9514.
CC: @sagetrac-cwitty @dandrake @jhpalmieri @burcin
Component: doctest coverage
Author: Carl Witty
Reviewer: Mitesh Patel
Merged: sage-4.5.2.rc0
Issue created by migration from https://trac.sagemath.org/ticket/9582
The text was updated successfully, but these errors were encountered: