Re: [Numpy-discussion] atol in allclose

2006-11-30 Thread Robert Kern
Charles R Harris wrote: > I think that's right. Do you want to make the change? Done. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Ec

Re: [Numpy-discussion] atol in allclose

2006-11-28 Thread Charles R Harris
On 11/28/06, Robert Kern <[EMAIL PROTECTED]> wrote: Matthew Brett wrote: > Hi, > > Sorry to keep cluttering the list, but I was a bit surprised by this > behavior of allclose: > > In [25]:allclose([1.0], [1.0], rtol=0) > Out[25]:True > > In [26]:allclose([1.0], [1.0], rtol=0, atol=0) > Out[26]:F

Re: [Numpy-discussion] atol in allclose

2006-11-28 Thread Robert Kern
Matthew Brett wrote: > Hi, > > Sorry to keep cluttering the list, but I was a bit surprised by this > behavior of allclose: > > In [25]:allclose([1.0], [1.0], rtol=0) > Out[25]:True > > In [26]:allclose([1.0], [1.0], rtol=0, atol=0) > Out[26]:False > > The docstring seems to imply that atol wil

[Numpy-discussion] atol in allclose

2006-11-28 Thread Matthew Brett
Hi, Sorry to keep cluttering the list, but I was a bit surprised by this behavior of allclose: In [25]:allclose([1.0], [1.0], rtol=0) Out[25]:True In [26]:allclose([1.0], [1.0], rtol=0, atol=0) Out[26]:False The docstring seems to imply that atol will not be used in this comparison - or did I m