The behavior for floating point is governed by IEEE standards, which dictate +infinity in this case. So I think this is not a bug. On Mar 9, 2016 10:13, "Vincent Delecroix" <[email protected]> wrote:
> Hello, > > Compare > > > sage: 1 / 0 > Traceback (most recent call last): > ... > ZeroDivisionError: rational division by zero > > > sage: 1. / 0. > +infinity > > > sage: SR(1.) / SR(0.) > Traceback (most recent call last): > ... > ZeroDivisionError: Symbolic division by zero > > > Since in Python (2 and 3) we have > > sage: 1.r / 0.r > Traceback (most recent call last): > ... > ZeroDivisionError: float division by zero > > I guess that the behavior of Sage floating point should be modified. What > do you think? > > Vincent > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
