[Numpy-discussion] commutative allclose

2008-04-10 Thread Tom Johnson
Should allclose() be commutative, so as to prevent the following: >>> x = 1.1001 >>> allclose(x,1), allclose(1,x) (False, True) There is some discussion here which provides two possible solutions: http://www.boost.org/doc/libs/1_35_0/libs/test/doc/components/test_tools/floating_point_compar

Re: [Numpy-discussion] Problems with long

2008-03-12 Thread Tom Johnson
On Sat, Jan 26, 2008 at 5:49 AM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > > Tom Johnson wrote: > > Hi, I'm having some troubles with long. > > > > > >>>> from numpy import log > >>>> log(8463186938969424928L)

[Numpy-discussion] Problems with long

2008-01-25 Thread Tom Johnson
Hi, I'm having some troubles with long. >>> from numpy import log >>> log(8463186938969424928L) 43.5822574833 >>> log(10454852688145851272L) : 'long' object has no attribute 'log' Thoughts? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org ht

Re: [Numpy-discussion] Max on Complex Array

2007-12-06 Thread Tom Johnson
On Dec 6, 2007 3:23 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > Tom Johnson wrote: > > What is the meaning of numpy's maximum on a complex-valued array? > > We impose a lexicographical ordering on the complex space. Good to know, but is this documented somewhere. a.

[Numpy-discussion] Max on Complex Array

2007-12-06 Thread Tom Johnson
What is the meaning of numpy's maximum on a complex-valued array? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion