Dumb python questions

Paul Rubin phr-n2001 at nightsong.com
Wed Aug 15 08:53:24 EDT 2001


"Tim Peters" <tim.one at home.com> writes:
> [Paul Rubin, asks about cmath branch cuts]
> 
> [Alex Martelli]
> > Fully specified at
> > http://python.sourceforge.net/devel-docs/lib/module-cmath.html
> 
> Oops!  I forgot Fred added that.  How much do you want to bet that they're
> all correct <wink>?

Oh cool.  Thanks.  Btw, is there any reason for the apparently
unnecessary complex contagion as soon as you touch cmath?  For
example, cmath.sqrt(1) is 1+0j instead of 1.0.  The HP-15C pocket
calculator handled all these issues very well way back in the 1980's
or so.  I don't know offhand how Scheme does it.



More information about the Python-list mailing list