Mathematics in Python are not correct

Luis Zarrabeitia kyrie at uh.cu
Fri May 9 01:11:32 EDT 2008


Quoting Ian Kelly <ian.g.kelly at gmail.com>:

> On Thu, May 8, 2008 at 10:15 PM, Luis Zarrabeitia <kyrie at uh.cu> wrote:
> >  Weird, I can't find neither... (which wikipedia article? Couldn't find one
> about
> >  C99.)
> 
> Try http://en.wikipedia.org/wiki/Exponentiation#Zero_to_the_zero_power

Thanks!
Interesting reasoning... both ways ("undefined" for real exponents, 1 for
combinatory/set-theory). It would be way too confusing to have 0**0=1 and 0**0.0
undefined, so I guess is best to follow convention.

[now, I would really like to see 0/0=nan...]

-- 
Luis Zarrabeitia
Facultad de Matemática y Computación, UH
http://profesores.matcom.uh.cu/~kyrie
--
"Al mundo nuevo corresponde la Universidad nueva"
UNIVERSIDAD DE LA HABANA
280 aniversario 



More information about the Python-list mailing list