[Numpy-discussion] strange bug
Tim Hochberg
tim.hochberg at cox.net
Tue Jun 20 08:28:28 EDT 2006
Johannes Loehnert wrote:
>Hi,
>
>
>
>>## Output:
>>numpy.__version__: 0.9.8
>>y: [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]
>>y**2: [ 0. 1. 4. 9. 16. 25. 36. 49. 64. 81.]
>>z: [ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9.]
>>z**2: [ 0.00000000e+00 1.00000000e+00 1.60000000e+01 8.10000000e+01
>> 2.56000000e+02 6.25000000e+02 1.29600000e+03 2.40100000e+03
>> 4.09600000e+03 6.56100000e+03]
>>
>>
>
>obviosly the last is z**4. dtypes are the same for y and z (float64).
>
>
I ran into this yesterday and fixed it. It should be OK in SVN now.
>One addition:
>
>In [5]: z = arange(10, dtype=float)
>
>In [6]: z **= 1
>
>In [7]: z
>zsh: 18263 segmentation fault ipython
>
>
This one is still there however. I'll look at it.
-tim
>
>- Johannes
>
>
>_______________________________________________
>Numpy-discussion mailing list
>Numpy-discussion at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>
>
>
>
More information about the NumPy-Discussion
mailing list