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
Weird bug in roots of a polynomial in relative number field extension #18942
Comments
comment:1
It seems this is caused by the
I found this ticket via this sage-nt discussion and suspect the above problem is the cause of both bugs. |
comment:2
In fact, in the above example we have
which causes a cache lookup in We should probably make number fields satisfy |
comment:3
I like this theory, but it seems like it would be more consistent with this output:
where the polynomial ring gets created once and then never changes. Fortunately (?), this actually is the output that I get trying this on two different machines running 7.1, starting from an empty session, and on SMC, currently running 6.10. This behavior appears to be reproducible. However, I tried a development build I have on SMC (version 7.2beta6), again from an empty session:
This also appears to be reproducible. |
comment:4
Replying to @pjbruin:
In this example, we also have:
which is presumably why
It appears that
It might be worth trying to replace |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
In fact, changing the hash of a number field to refer to the relative defining polynomial doesn't seem to break anything that I could find. These commits implement that change and add several doctests based on the above discussion and the linked sage-nt thread. |
Author: Kiran Kedlaya |
comment:9
Several comments:
|
Reviewer: Peter Bruin |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
See if this covers everything. I added a relevant doctest for |
comment:12
Looks good to me and all tests pass according to the patchbot. |
Changed branch from u/kedlaya/weird_bug_in_roots_of_a_polynomial_in_relative_number_field_extension to |
Changed commit from |
I have no idea what is going on.
So, that's weird. But it gets worse! First do this
Okay, but then do fbar.roots?? to see the source code, then press 'q' to exit that, then
Huh?
(I'm doing this is sage 6.7 on the cloud.)
CC: @sagetrac-misjafasteinmetz
Component: number fields
Keywords: Relative number field, roots
Author: Kiran Kedlaya
Branch:
4c52f08
Reviewer: Peter Bruin
Issue created by migration from https://trac.sagemath.org/ticket/18942
The text was updated successfully, but these errors were encountered: