Skip to content
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

real and imag of number field element do not respect embedding #26537

Open
dkrenn opened this issue Oct 23, 2018 · 0 comments
Open

real and imag of number field element do not respect embedding #26537

dkrenn opened this issue Oct 23, 2018 · 0 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Oct 23, 2018

sage: CC(QQ.extension(x^2 + 5*x + 12, 'alpha1').gen())

and

sage: SR(QQ.extension(x^2 + 5*x + 12, 'alpha1').gen())

throw exceptions as they should, but

sage: real(QQ.extension(x^2 + 5*x + 12, 'alpha1').gen())
-5/2
sage: imag(QQ.extension(x^2 + 5*x + 12, 'alpha1').gen())
1/2*sqrt23

return a result. Indeed the real part is independent of the embedding, so correct, but the imaginary part is depends in the embedding.

Component: number fields

Issue created by migration from https://trac.sagemath.org/ticket/26537

@dkrenn dkrenn added this to the sage-8.5 milestone Oct 23, 2018
@mkoeppe mkoeppe removed this from the sage-8.5 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants