-
-
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
Incorrect doctest in sage/misc/functional.py #12845
Comments
Add assumptions and use simplify() instead of simplify_full(). |
comment:1
Attachment: sage-trac_12845.patch.gz |
Author: Michael Orlitzky |
comment:2
Should there also be another ticket for fixing the bug of the real assumption? |
comment:3
Replying to @novoselt:
Yes, there are at least two, #12737 and #12780. I separated this patch out because I wound up fixing the same doctest twice. The first bug, "fixed" by #12737 is that
The second more sneaky bug, #12780, is that
I think the fix there is straightforward: don't do that. This was the only doctest affected by not setting the domain to |
comment:5
Do you have to |
comment:6
Attachment: trac_12845-reviewer.patch.gz Apply sage-trac_12845.patch and trac_12845-reviewer.patch. |
This comment has been minimized.
This comment has been minimized.
Reviewer: Karl-Dieter Crisman |
comment:7
Replying to @kcrisman:
Yeah, thanks, I just forgot to add it. |
Merged: sage-5.1.beta3 |
We currently have,
which is true enough if a,b,c are real. The current doctest "works" because somewhere along the line,
simplify_full()
assumes that they're real. So in effect, this doctest is confirming incorrect behavior.The proper fix is to explicitly assume that a,b,c are real.
Apply attachment: sage-trac_12845.patch and attachment: trac_12845-reviewer.patch.
CC: @kcrisman
Component: symbolics
Author: Michael Orlitzky
Reviewer: Karl-Dieter Crisman
Merged: sage-5.1.beta3
Issue created by migration from https://trac.sagemath.org/ticket/12845
The text was updated successfully, but these errors were encountered: