Opened 4 years ago

#26537 new defect

real and imag of number field element do not respect embedding

Reported by: Daniel Krenn 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:

Status badges


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


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())
sage: imag(QQ.extension(x^2 + 5*x + 12, 'alpha1').gen())

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.