[Numpy-discussion] bug in oldnumeric.ma

Anne Archibald peridot.faceted@gmail....
Wed May 7 16:22:19 CDT 2008


2008/5/7 Jonathan Wright <wright@esrf.fr>:

>  Is there a rule against squaring away the negatives?
>
>  def not_your_normal_pow( x, y ): return exp( log( power( x, 2) ) * y / 2 )
>
>  Which still needs some work for x==0.

Well, it means (-1.)**(3.) becomes 1., which is probably not what the
user expected...

Anne


More information about the Numpy-discussion mailing list