#11808: MPC complex numbers and the symbolic i cannot be added
---------------------------------+------------------------------------------
Reporter: jpflori | Owner: tbd
Type: defect | Status: new
Priority: minor | Milestone: sage-4.7.2
Component: optional packages | Keywords: mpc complex numbers
multiprecision.org
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
---------------------------------+------------------------------------------
With the current interface to the MPC library, you cannot add the symbolic
i and complex numbers:
{{{
sage: from sage.rings.complex_mpc import MPComplexField
sage: MPC = MPComplexField()
sage: MPC(1)+i
...
TypeError: unsupported operand parent(s) for '+': 'Complex Field with 53
bits of precision' and 'Symbolic Ring'
}}}
This work with "usual" complex numbers:
{{{
sage: CC(1)+i
1.00000000000000 + 1.00000000000000*I
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11808>
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 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.