-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Characteristic polynomial of central Hyperplane arrangement returns wrong result? #30749
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
The char poly gives the same answer
|
comment:3
Replying to @fchapoton:
Yes, this is how the number of regions is computed up to sign. The hyperplane arrangement seems to be sane: computing I asked the number of regions to double-check something and then got this scary answer... |
comment:5
I encountered this problem in some example a long while ago, before I was contributing to Sage myself. A simple workaround is to have |
This comment has been minimized.
This comment has been minimized.
comment:7
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:10
Replying to @sagetrac-nailuj:
The characteristic polynomial is obtained through recursive deletions and contractions of hyperplane arrangements. During this process, it may occur that some hyperplane |
Dependencies: #30078 |
comment:12
Is this defect solved by #30078? |
comment:13
It seems like it is. Using the first example, I get
So it is now consistent. We probably just want to add a doctest for this ticket. |
Branch: public/30749 |
Author: Jonathan Kliem |
Commit: |
This comment has been minimized.
This comment has been minimized.
Changed dependencies from #30078 to none |
comment:15
--- a/sage/geometry/hyperplane_arrangement/arrangement.py
+++ b/sage/geometry/hyperplane_arrangement/arrangement.py
@@ -1179,10 +1179,10 @@
sage: H = HyperplaneArrangements(AA, names='xyz')
sage: x,y,z = H.gens()
sage: A = H(backend="normaliz") # optional - pynormaliz
- sage: for v in my_vector: # optional - pyrormaliz
+ sage: for v in my_vectors: # optional - pynormaliz
....: a, b, c = v
....: A = A.add_hyperplane(a*x + b*y + c*z)
- sage: A.n_regions() # optional - pyrormaliz
+ sage: A.n_regions() # optional - pynormaliz
32
"""
if self.base_ring().characteristic() != 0: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
Thank you. LGTM. @sheerluck, please add your (real) name to the reviewers (if you want). |
Reviewer: Travis Scrimshaw |
Changed branch from public/30749 to |
A central hyperplane arrangement must have an even number of regions by central symmetry... yet the one below gets 31 regions(!).
Here is another failure in characteristic polynomial:
#30078 fixes this and we add another doctest here.
CC: @kliem @LaisRast @sagetrac-nailuj
Component: geometry
Keywords: hyperplane arrangements, regions
Author: Jonathan Kliem
Branch/Commit:
d74929d
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/30749
The text was updated successfully, but these errors were encountered: