#17116: Inconsistency between imag function and method
-----------------------------+----------------------------
   Reporter:  gagern         |            Owner:
       Type:  defect         |           Status:  new
   Priority:  major          |        Milestone:  sage-6.4
  Component:  number fields  |         Keywords:
  Merged in:                 |          Authors:
  Reviewers:                 |  Report Upstream:  N/A
Work issues:                 |           Branch:
     Commit:                 |     Dependencies:
   Stopgaps:                 |
-----------------------------+----------------------------
 I find the following strange and confusing:

 {{{
 sage: z6 = CyclotomicField(6).gen()
 sage: z = 1 - z6
 sage: imag(z)
 -1/2*sqrt(3)
 sage: imag(z).parent()
 Symbolic Ring
 sage: z.imag()
 -1/2*sqrt3
 sage: z.imag().parent()
 Number Field in sqrt3 with defining polynomial x^2 - 3
 }}}

 In my opinion, the function and the method should yield the same result.
 I'd prefer the number field result.

--
Ticket URL: <http://trac.sagemath.org/ticket/17116>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to