-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Remove vacuous solutions from solve #14229
Comments
Apply to devel/sage |
comment:1
Attachment: trac_14229-remove_vacuous_solutions.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
This kind of change should really be made to maxima, not to sage's postprocessing of what maxima returns. |
Work Issues: port to upstream |
comment:6
If someone knows how to translate this to maxima, please feel free to put this upstream. Thanks! [ I can not spend time in learning maxima right now. :( ] |
This comment has been minimized.
This comment has been minimized.
comment:7
Helloooooooo !! You remove equations that do not contain a variable, but couldn't You could also write, later in the patch
Nathann |
comment:8
EDIT: |
comment:12
These vacuous solutions seem to arise from the fact that solving inequalities with
See sage-devel too. |
comment:14
One may be concerned with performance when we have to set these flags all the time. On the expect interface that's probably silly anyway, and on the library interface we can reach a little deeper and save some time:
For comparison:
so I think we can afford a little
|
comment:16
Replying to @nbruin:
So do you think this should be done in the Sage |
Changed work issues from port to upstream to none |
Sometimes solve and its variants tend to report vacuous solutions. A recent one from ask.sagemath is the following:
Shouldn't we remove these meaningless solutions? The attached patch contains a potential solution. If it seems reasonable, then similar changes could be introduced in
solve_ineq
.The output of the above command after this patch is as expected:
If you can translate this to maxima proper, please feel free to do so and submit a patch upstream.
Workaround: call
maxima_calculus("domain: real")
beforesolve
(see comment 12).CC: @kcrisman @jondo
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/14229
The text was updated successfully, but these errors were encountered: