#17116: Inconsistency between imag function and method
---------------------------------+------------------------
Reporter: gagern | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.4
Component: number fields | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------+------------------------
Comment (by gagern):
Even more bizarre:
{{{
sage: CyclotomicField(6).gen().real()
1/2
sage: CyclotomicField(12).gen().real()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
sage/structure/element.so
in sage.structure.element.Element.__getattr__
(sage/structure/element.c:4022)()
sage/structure/misc.so
in sage.structure.misc.getattr_from_other_class
(sage/structure/misc.c:1775)()
AttributeError:
'sage.rings.number_field.number_field_element.NumberFieldElement_absolute'
object has no attribute 'real'
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17116#comment:1>
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.