def power, problem when raising power to decimals

Mensanator mensanator at aol.com
Wed Apr 16 19:12:09 EDT 2008


On Apr 16, 5:49 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Wed, 16 Apr 2008 19:21:18 -0300, John Machin <sjmac... at lexicon.net>  
> escribió:
>
> > skanem... at yahoo.se wrote:
> >> also i found a link which states 0^0 isnt 1 even though every
> >> calculator ive tried says it is.
> >> it doesnt say what it is but i presume 0 then.
> >> but it seems the dude is wrong and it is 1?
>
> > Of the possible results of 0 ** 0 (i.e. 1, 0, and NaN), 1 seems to be
> > the least implausible. It allows X ** 0 to be 1 for all X.
>
> But a result of 0 would allow 0 ** X to be 0 for all X. (btw, this is the  
> reason lim(x**x) for x->0 does not exist)

Where this has come up in my research, X**0 being a multiplicative
identity is far more important than 0**X being an additive identity.


>
> --
> Gabriel Genellina




More information about the Python-list mailing list