So is it a bug in the test or a bug in the implementation? The problem is that the slice values[1:] when values = [-120000,39000,30000,21000,37000,46000] contains no negative number and a nan is returned. This looks like a bug in the test. The documentation also probably needs fixing.
Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion