On 26 August 2017 at 01:40, David Roe <roed.m...@gmail.com> wrote:

> This is not a bug.  If you look at the documentation for Integer.__pow__,
> you'll see "For consistency with Python and MPFR, 0^0 is defined to be 1 in
> Sage."
> David
>

I'm not a mathematician, but believe 0^0 is undefined. Sagemath being
consistent with something that is wrong seems to be a bug to me. Just
because X does it wrong, I don't see why there's a good reason to follow X.

Submitting that as a bug to Python and MPFR developers seems sensible.
Following them does not.

FWIW, in Mathematica.

drkirkby@hawk:~/PDFs$ math
Mathematica 7.0 for Sun Solaris x86 (64-bit)
Copyright 1988-2009 Wolfram Research, Inc.

In[1]:= 0^0

                                        0
Power::indet: Indeterminate expression 0  encountered.

Out[1]= Indeterminate

In[2]:=

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to