-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Containment checks are wrong for empty polyhedra #10238
Comments
comment:1
I changed the "empty" polyhedron to contain one equation |
comment:2
Replying to @vbraun:
This seems reasonable, but it shows in the doctest as "[An equation () x + -1 == 0]" which is confusing: what is "() x" and why "+ -"? This is not directly related to this ticket, but how about omitting "() x +" for 0-dimensional equations/inequalities and taking into account the "+ -" situation in general? |
Reviewer: Andrey Novoseltsev |
Author: Volker Braun |
comment:4
I guess this ticket is as good as any other to fix the string 'repr()' of (in)equalities :-) The updated patch skips "zero coefficient times x" and handles the sign of the constant term nicer. |
comment:5
Patch order issues:
(Tested on top of face lattice.) I am fine with this version, but just to make sure: you really want to start the line with "+" if there are no variables and have space between the sign and the coefficient only if there are variables? |
comment:6
I rearranged the patches an in #9604, should apply cleanly now. My preferred prettyprinting is
and I fixed the 3rd one in the patch. |
Attachment: trac_10238_containment_check_for_empty_polyhedra.patch.gz Updated patch |
comment:7
Cool! |
Merged: sage-4.6.1.alpha1 |
I think all of the above should return False.
CC: @vbraun @novoselt
Component: geometry
Author: Volker Braun
Reviewer: Andrey Novoseltsev
Merged: sage-4.6.1.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/10238
The text was updated successfully, but these errors were encountered: