The following looks ok (see comments below, however):

sage: 1/RR(0)
+infinity
sage: RR(0)^(-1)
+infinity

But how about this?

sage: 1/CC(0)
NaN - NaN*I
sage: CC(0)^(-1)
ZeroDivisionError...

I don't really like either of these; I guess I would prefer the answer to be
UnsignedInfinity in both cases.  For that matter, I'm not quite sure why
1/RR(0) is +infinity rather than -infinity, so I guess I would prefer for
*that* to be UnsignedInfinity as well.

On the other hand, I don't really use this sort of thing every day, so maybe
someone who's closer to this issue can chime in.

Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to