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
Keep embedding info when converting algebraics to number field in projective morphism #23808
Comments
comment:2
The following code used to fail: R.<t>=PolynomialRing(QQ)
s = (t^3+t+1).roots(QQbar)[0][0]
P.<x,y>=ProjectiveSpace(QQbar,1)
H = Hom(P,P)
f = H([s*x^3-13*y^3, y^3-15*y^3])
f_alg = f._number_field_from_algebraics()
f_alg.change_ring(QQbar) # Used to fail The problem was that the number field being defined over which f_alg was defined should include an embedding, telling Sage where to send the generator in the real/complex numbers. (After all, QQbar elements all have this embedding information.) This information was present but was not being used when defining the number field (possibly due to a quirk in the code from qqbar.py). The fix now updates the code to specify this embedding when creating the number field. New commits:
|
Author: paulfili |
Commit: |
Reviewer: David Roe |
comment:3
You should add a test to show that the bug has been fixed. You can use
to refer to this ticket in the docstring. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Replying to @roed314:
Thanks, David, I added the example. |
comment:7
You should change |
comment:8
Also, note that there is a similar function for points that should be modified at the same time. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed author from paulfili to Paul Fili |
comment:11
Replying to @roed314:
Thanks, David, I have changed that as well. |
This comment has been minimized.
This comment has been minimized.
Changed reviewer from David Roe to David Roe, Ben Hutz |
comment:12
This looks fine to me. I also added a description. |
Given a map or point defined over QQbar, you can call _numberfield_from_algebraics to return a map over a number field. However, the resulting object cannot be converted back to QQbar since the embedding information is lost.
CC: @bhutz
Component: algebraic geometry
Author: Paul Fili
Branch/Commit:
693578c
Reviewer: David Roe, Ben Hutz
Issue created by migration from https://trac.sagemath.org/ticket/23808
The text was updated successfully, but these errors were encountered: