
np.set_printoptions(precision=4) np.lib.scimath.arctanh([1j]) array([ 0.+0.7854j])
so far, so good
np.lib.scimath.arctanh(1j) 0.78539816339744828j
i.e., set_printoptions didn't affect the result when the input was a scalar. "Feature" or bug? DG

On Tue, Jul 28, 2009 at 8:19 PM, David Goldsmith <d_l_goldsmith@yahoo.com>wrote:
np.set_printoptions(precision=4) np.lib.scimath.arctanh([1j]) array([ 0.+0.7854j])
so far, so good
np.lib.scimath.arctanh(1j) 0.78539816339744828j
i.e., set_printoptions didn't affect the result when the input was a scalar. "Feature" or bug?
A bug, reported last year in numpy ticket #817. Ralf
DG
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev
participants (2)
-
David Goldsmith
-
Ralf Gommers