[Numpy-discussion] Bug in logaddexp2.reduce

T J tjhnson at gmail.com
Wed Mar 31 18:42:22 EDT 2010


On Wed, Mar 31, 2010 at 3:36 PM, Charles R Harris
<charlesr.harris at gmail.com> wrote:
>> So this is "expected" behavior?
>>
>> In [1]: np.logaddexp2(-1.5849625007211563, -53.584962500721154)
>> Out[1]: -1.5849625007211561
>>
>> In [2]: np.logaddexp2(-0.5849625007211563, -53.584962500721154)
>> Out[2]: nan
>>
> I don't see that
>
> In [1]: np.logaddexp2(-0.5849625007211563, -53.584962500721154)
> Out[1]: -0.58496250072115619
>
> In [2]: np.logaddexp2(-1.5849625007211563, -53.584962500721154)
> Out[2]: -1.5849625007211561
>
> What system are you running on.
>

$ python --version
Python 2.6.4

$ uname -a
Linux localhost 2.6.31-20-generic-pae #58-Ubuntu SMP Fri Mar 12
06:25:51 UTC 2010 i686 GNU/Linux



More information about the NumPy-Discussion mailing list