[Numpy-discussion] exp

Pieter Dumon Pieter.Dumon at intec.UGent.be
Tue Aug 2 09:05:56 CDT 2005


Hi,

I'm having a problem with exp():

 >>>import Numeric
 >>>a = Numeric.array([-800+0j])*Numeric.ones(10)
 >>>Numeric.exp(a)

results in"OverflowError: math range error"

I had expected to get the cmath.exp() result:

 >>> import cmath
 >>> cmath.exp(-800+0j)
0j


anyone knows what I'm doing wrong ?

Pieter




More information about the Numpy-discussion mailing list