Opened 14 months ago

#26537 new defect

real and imag of number field element do not respect embedding

Reported by: dkrenn Owned by:
Priority: major Milestone: sage-8.5
Component: number fields Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.