Well, 0^0 is an indeterminate form:
http://en.wikipedia.org/wiki/Indeterminate_form#The_form_00
So, do you mean something like this?
sage: assume(x>0)
sage: limit(x^x, x=0)
1
Best,
--
Hector
Sympy does that but may redefine other things as well:
sage: from sympy import *
sage: 0^0
1
>
> thanks, Georg
>
> >
>
No, there isn't, not at runtime, since the integers are a precompiled
extension to Python. However, I've posted a patch here
http://trac.sagemath.org/sage_trac/ticket/1983
which will change this behavior in Sage so that 0^0 does yield 1.
This is consistent with PARI, Magma, Maple, GMP, MPFR, Python,
etc., so makes sense for Sage to do.
> so that in this case their is a well defined result instead of a "0^0
> is undefined" error.
>
> thanks, Georg
>
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
Don't do this. It will be very confusing, e.g.,
since Sympy Integers are drastically different from Sage and doing the above
makes all integer literals Sympy integers.
sage: from sympy import *
sage: factor(15)
15
sage: type(2/3)
<class 'sympy.core.numbers.Rational'>
sage: type(15)
<class 'sympy.core.numbers.Integer'>
William
Sage wraps all integers literals in Integer(...), and evidently
sympy redefines the Integer function. I'm definitely not sure
that is a good thing.
William