Mathematics in Python are not correct
Terry Reedy
tjreedy at udel.edu
Sat May 10 20:00:30 EDT 2008
<wxPythoner at gmail.com> wrote in message
news:f6743b81-9324-46dd-bbd3-ef8812e28197 at d77g2000hsb.googlegroups.com...
|I am stunned that this simple misunderstanding of mine ended in a
| mathematical clash of a sort. :) You guys really blew me away wih
| your mathematical knowledge. And also the 0**0 is a thing I've never
| thought about trying, until now that is.
Anyone who defines a function should think about 'edge' and 'corner' cases.
Recursive definitions often help, since such cases are typically the base
cases.
When learning a (computer) function, I often test such cases since they are
a common place to mess up.
tjr
More information about the Python-list
mailing list