Opened 9 years ago

Last modified 5 years ago

#11808 new defect

MPC complex numbers and the symbolic i cannot be added

Reported by: jpflori Owned by: robertwb
Priority: minor Milestone: sage-6.9
Component: coercion Keywords: mpc complex numbers
Cc: leif Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:


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

Change History (6)

comment:1 Changed 9 years ago by leif

  • Cc leif added

comment:2 Changed 7 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:6 Changed 5 years ago by jdemeyer

  • Component changed from packages: optional to coercion
  • Milestone changed from sage-6.4 to sage-6.9
  • Owner changed from tbd to robertwb
Note: See TracTickets for help on using tickets.