-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Symbolic simplification error #11934
Comments
Attachment: simplify_error.sage.gz A sage file that displays and attempts to plot the simplification |
This comment has been minimized.
This comment has been minimized.
comment:1
Can you be more specific about the invalidity? I think the plot errors are because of the imaginary pieces. Remember, these simplifications are not supposed to be 100 percent valid at all times; especially with roots there are branch issues, unfortunately. The |
This comment has been minimized.
This comment has been minimized.
comment:3
Replying to @kcrisman:
This seems to be the root of the problem. My function is real, the simplification is not:
I realize that the imaginary part is basically zero, but one of the simplifications has overstepped its bounds somewhere in that the expression is verifiably different pre- and post-simplification. |
Milestone sage-4.7.3 deleted |
Dependencies: #12322 |
Author: Michael Orlitzky |
comment:6
I'm questioning whether this really is fixing anything. First, it's still there with
Secondly, the problem is really this. Notice I'm not simplifying anything at all here.
Needs work/info, but not because of your patch or #12737, but rather because this doesn't really treat the underlying issue. This could just be some floating point thing that is inherently impossible to avoid once one allows complex numbers (and since your original example is complex sometimes, the answers are going to be complex, unfortunately). |
comment:7
Replying to @kcrisman:
There aren't any floating point issues if you don't call Plain
As does
And
And
It's only
I don't want a random branch of the square root when I ask for a simplification. I want a simplification, but only if possible! Without more information, you can't simplify that expression. The rest of the simplify functions don't do anything, but that's the correct thing to do here. |
Attachment: sage-trac_11934.patch.gz Doctest for a subexpression of the one in the ticket |
comment:9
I just uploaded a slightly better doctest now that this is fixed. |
Merged: sage-5.13.rc0 |
Changed dependencies from #12322 to none |
Reviewer: Jeroen Demeyer |
comment:10
This doesn't seem to depend on #12322 at all. |
I ran into this today with a real function. Sorry I don't have a shorter test case. The attached file should show a simplification which, as far as I can tell, is invalid.
Component: symbolics
Author: Michael Orlitzky
Reviewer: Jeroen Demeyer
Merged: sage-5.13.rc0
Issue created by migration from https://trac.sagemath.org/ticket/11934
The text was updated successfully, but these errors were encountered: