Ticket #1128 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

[with-patch+review] Coercion of complex numbers

Reported by: robertwb Owned by: roed
Priority: major Milestone: sage-2.8.15
Component: basic arithmetic Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

sage: ComplexField(200)(1) + RealField(100)(1)
<type 'exceptions.TypeError'>: unsupported operand parent(s) for '+': 'Complex Field with 200 bits of precision' and 'Real Field with 100 bits of precision'

Should return an element of ComplexField?(100)

This should be an easy fix, see

 http://groups.google.com/group/sage-devel/browse_thread/thread/5bc6c9190a3da63e/597d0eb7a45dae11?lnk=gst&q=complexfield#597d0eb7a45dae11

Attachments

trac1128.patch Download (5.6 KB) - added by roed 5 years ago.
Adds algebraic completion functor
trac1128.2.patch Download (5.2 KB) - added by robertwb 5 years ago.
cleaner patch

Change History

comment:1 Changed 6 years ago by mabshoff

  • Milestone set to sage-2.8.13

comment:2 Changed 5 years ago by roed

  • Owner changed from somebody to roed

Changed 5 years ago by roed

Adds algebraic completion functor

comment:3 Changed 5 years ago by roed

  • Summary changed from Coercion of complex numbers to [with-patch] Coercion of complex numbers

Changed 5 years ago by robertwb

cleaner patch

comment:4 Changed 5 years ago by robertwb

Yep, works great.

comment:5 Changed 5 years ago by robertwb

  • Summary changed from [with-patch] Coercion of complex numbers to [with-patch+review] Coercion of complex numbers

comment:6 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged in 2.8.15.alpha2. I did merge trac1128.2.patch.

Note: See TracTickets for help on using tickets.