I am wondering what Sage's strategy is with regard to coercions.
It thought that it would be reasonable that an element of a
RealIntervalField
should be coercable into a RealField but this does not seem to be the
case.

sage: r=RealIntervalField(16)((1,2))
sage: RealField(16)(r)

<type 'exceptions.TypeError'>: Unable to convert x
(='[1.00000...2.00000]') to real number.

Is this a design decision?

Regards,
Michel



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to