math.exp(complex)
David Eppstein
eppstein at ics.uci.edu
Sun Sep 21 16:57:40 EDT 2003
In article <ENnbb.10075$Uv2.662 at nwrdny02.gnilink.net>,
"Raymond Hettinger" <vze4rx4y at verizon.net> wrote:
> > So why not math.exp(complex)?
>
> Use the cmath module for complex ops:
Thanks, but then my next question is, why are math and cmath different
from each other?
And, is there any important difference (e.g. in numerical accuracy)
between cmath.exp(x) and math.e**x ?
--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-list
mailing list