This is not fun:

sage: from sage.rings.complex_number import ComplexNumber as CN
sage: parent(1+I) 
Symbolic Ring
sage: coerce(CN, 1+I)
BOOM

(with 4.8.alpha1 and 4.7.2 in 64-bit Linux)

It looks like mpfr is extremely unhappy about something.

Also, if I just use the regular ComplexNumber in the global namespace
with the same command, I get "TypeError: unable to coerce to a
ComplexNumber: <type 'str'>". I understand that coercion may not be able
to handle SymbolicRing stuff to complex, but that's a strange message,
especially since ComplexNumber claims that it wants strings to convert.
But for now let's just deal with the segfault.

Dan

--
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to