[Numpy-discussion] Log Arrays

T J tjhnson@gmail....
Thu May 8 02:30:18 CDT 2008


On Thu, May 8, 2008 at 12:26 AM, T J <tjhnson@gmail.com> wrote:
>
>  >>> x = array([-2,-2,-3], base=2)
>  >>> y = array([-1,-2,-inf], base=2)
>  >>> z = x + y
>  >>> z
>  array([-0.415037499279, -1.0, -3])
>  >>> z = x * y
>  >>> z
>  array([-3, -4, -inf])
>  >>> z[:2].sum()
>  -2.41503749928
>

Whoops....

s/array/logarray/


More information about the Numpy-discussion mailing list