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
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)
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
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.
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