On Thu, Mar 19, 2015 at 3:16 AM, Chris Wuthrich <[email protected]> wrote: > > >> What about the quadratic case? Would you oppose change the print order >> just for quadratic number fields (note that we already have a separate class >> QuadraticNumberField, so the change can easily be made). > > And a further subquestion: What about Q[i] ? It seems really strange that > sage decides to write 3*I + 1. But reverts it for CC(3*I+1). > No other cas does that, I would think.
Actually, both PARI and Magma do exactly that, at least if you mean write elements of the quadratic field defined by x^2+1 with the root of the poly first, then the constant term. Pari and Magma then put the I second when representing complex numbers. Maple probably does too... Added examples here -- https://cloud.sagemath.com/projects/2bfce692-d0d8-4b89-968e-d9825f175a0f/files/support/2015-03-18-092139-nf-order.sagews > While I am at it: Can I ask for a pointer to the discussion why I is > symbolic ? I think Bobby Moretti (a UW undergrad) implemented the first version of symbolics in 2006. Robert Bradshaw and I only started implementing basic algebraic number theory functionality (like QuadraticField, etc.) a year or two later, motivated by an algebraic number theory grad course I was going to teach... > > -- > You received this message because you are subscribed to the Google Groups > "sage-nt" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > > Visit this group at http://groups.google.com/group/sage-nt. > For more options, visit https://groups.google.com/d/optout. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-nt" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. Visit this group at http://groups.google.com/group/sage-nt. For more options, visit https://groups.google.com/d/optout.
