Hello,

I had a couple of questions about funny sage behaviors and ran into a few more 
this morning.  I'm going to post them one-by-one.

This first one is about the maxima interface.  It seems to me that I should be 
able to "type-cast" a maxima object to CC just as well as to ZZ, but I cannot 
in the code below.  I realize that I can call "real" and "imag" on the maxima 
object so I can do what I wanted, just not in the most obvious fashion.

sage: # this works
sage: ZZ(maxima('1'))
sage: CC(maxima('1'))
sage: # this doesn't
sage: CC(maxima('1+%i'))
sage: # Why the difference?

I attempted to follow the code-path through for the integer case to understand 
the working analogue, but I was confused and don't understand how the integer 
works.  If I'm pointed in a right direction to start, I'm sure I can work out 
a patch to fix the bug.

--
Joel

--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to