Numerical Python Bug ?

Uwe Schmitt uwe at
Wed Nov 7 16:26:49 CET 2001


during a large compilation I get problems with vectors / arrays:

     print sp


    [ 100, 50,]


     print 0.5*sp


    [ 0, 0, ]

type(sp) is "array" and type(sp[0]) is "float".

What makes me wonder is the output format. "print sp" should give

    [ 100., 50. ]

which is different from my result above...

Is there a bug in NumPy ???

One remark: the behaviour above does not happen if I enter some vectors

Yours, Uwe.

Dr. Uwe Schmitt                                 Uwe.Schmitt at
Universitaet des Saarlandes                     Angewandte Mathematik
Building 36.1 Room 4.17         PO-Box 151150   D-66041 Saarbruecken
Mobile:0177/6806587    Fax:+49(0)681/302-4435   Office:+49(0)681/302-2468

More information about the Python-list mailing list