2008/5/7 Jonathan Wright <[EMAIL PROTECTED]>:

>  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
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to