On Friday, March 16, 2018 at 7:27:41 PM UTC-7, Andrey Novoseltsev wrote:
>
> On Fri, Mar 16, 2018 at 4:18 PM, Jorge Garcia <calc...@gmail.com 
> <javascript:>> wrote: 
> > Dear Hive Mind: 
> > 
> > Why is there no Divide By Zero Error here: 
> > 
> http://sagecell.sagemath.org/?z=eJwljkELgkAUhO-C_2GiAtek1kuX2Eu4pBc3NjEqCqQ2E-QlpvX3cwuGd5jHzDdjZHGyw6BUZdgoFQXYx1JLa2WxRJTkSSSxPuAotYLUWumR64zRcDEJOecBtFhOA3QitHZpyLRFZ1BR03fDvdb9raISJLjrpKItqDReyNnq9Xh-vJTZkHkXdW9DjUcMvu__F2SIlNxhk-Tyt-UHH76usxUny_a9cMbnfLkgdiHcny1oICI9_8u37AuZcDtw&lang=sage
>  
> Someone probably can, but perhaps not on this list: it has something 
> to do with 0^0 evaluating to 1 and I recall some earlier discussions 
> about it. Forwarding to sage-support. 
>

The issue seems the way that floats deal with division by 0. The expression 
0.06/0 gets evaluated as (0.06)/(0.000) and apparently that gets evaluated 
as +infty. If that gets raised to 0, you get 1.

If you instead write (6/100) / 0 you do get a division by 0 exception.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to