Michael, > Is anyone else seeing this? It should be easy to test. If so, I > think it's a bug.
Yeah, I see that as well. In MA.power(a,b), a temporary mask is created, True for values a<=0. (check L1577 of the sources, `md = make_mask(umath.less_equal (fa, 0), flag=1)`). The combination of this temp and the initial mask defines the final mask. This condition could probably be relaxed to `md = make_mask(umath.less(fa, 0), flag=1)` That way, the a=0 elements wouldn't be masked, and you'd get the proper result. I haven't really time to double-check/create a patch, tough. Meanwhile, Michael, you could just modify your numpy/core/ma.py accordingly. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion