On Friday, October 26, 2018 at 9:07:58 AM UTC-7, Daniel Krenn wrote: > > What my troubles are, is that by using abs my computation gets inexact, > which I want to avoid at all cost. > (So I think I just have to treat CyclotomicFields etc. special) > > Yes, that indicates you are probably more interested in a relative norm than in an absolute value, if exactness matters for you.
The right target to take values in would probably be (if K is a cyclotomic field): K.maximal_totally_real_subfield() For arbitrary number fields with a complex embedding, the associated real field might not be a subfield (for that you need the corresponding complex conjugation to be an element of the automorphism group over Q). -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.