In article <[EMAIL PROTECTED]>, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Luis Zarrabeitia" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Btw, there seems to be a math problem in python with exponentiation... > | >>> 0**0 > | 1 > | That 0^0 should be a nan or exception, I guess, but not 1. > > a**b is 1 multiplied by a, b times. 1 multiplied by 0 no times is 1. > But there are unenlighted people who agree with you ;-) > Wikipedia has a discussion of this. > > tjr I like that argument better. But... I've also heard the very similar a**b is a multiplied by a b-1 times. That gives 0**0=0*(1/0). Uh, Oh! If you want consistency with the treatment of exponents that might cause problems. Tough situation when you have a "discontinuity" at 0 for x^x. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list