Ask Your Question

Revision history [back]

Hello,

The problem comes from the fact that Sage floating point number behave differently than other numbers with respect to division by zero. Namely

sage: 1 / 0
Traceback (most recent call last):
...
ZeroDivisionError: rational division by zero
sage: 1. / 0.
+infinity

I opened a discussion. But I think that the second example should raise the same error as the first one. See this sage-devel thread.