Zero power zero

12 views
Skip to first unread message

Jori Mantysalo

unread,
Apr 16, 2014, 8:08:06 AM4/16/14
to sage-s...@googlegroups.com
print 0^0
var('n')
simplify(0^n)

prints

1
0

Is this a bug or feature?

--
Jori Mäntysalo

Michael Orlitzky

unread,
Apr 16, 2014, 11:02:58 AM4/16/14
to sage-s...@googlegroups.com
On 04/16/2014 08:08 AM, Jori Mantysalo wrote:
> print 0^0
> var('n')
> simplify(0^n)
>
> prints
>
> 1
> 0
>
> Is this a bug or feature?
>

Bug, 0^0 is undefined in Maxima but 0^x is 0.

In Sage we've standardized on 0^0 == 1.

leif

unread,
Apr 16, 2014, 11:07:01 AM4/16/14
to sage-s...@googlegroups.com
Jori Mantysalo wrote:
> print 0^0
> var('n')
> simplify(0^n)
>
> prints
>
> 1
> 0
>
> Is this a bug or feature?

To start with, e.g. take a look at

http://trac.sagemath.org/ticket/10772

(and probably one of its follow-ups,
http://trac.sagemath.org/ticket/13786 ).

(There are plenty of related tickets, and IIRC we also had endless
discussions a couple of times on sage-devel.)


Tertium tamen datur,

-leif

--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail

Reply all
Reply to author
Forward
0 new messages