#6159: Implement real_part for CDF and CC
------------------------------+---------------------------------------------
Reporter: jason | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.1
Component: basic arithmetic | Keywords:
------------------------------+---------------------------------------------
{{{
sage: CC(I).real_part()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/jason/.sage/temp/littleone/9440/_home_jason__sage_init_sage_0.py in
<module>()
AttributeError: 'sage.rings.complex_number.ComplexNumber' object has no
attribute 'real_part'
sage: CDF(I).real_part()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/jason/.sage/temp/littleone/9440/_home_jason__sage_init_sage_0.py in
<module>()
AttributeError: 'sage.rings.complex_double.ComplexDoubleElement' object
has no attribute 'real_part'
}}}
but
{{{
sage: (3+I).real_part()
3
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6159>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---