I am getting some very strange behaviour from the Linear Algebra module.
Look at this code:
from LinearAlgebra import *
a=5
print a
And look at the output that I get when I run it:
50.0
0.0
0.25
0.0
0.5
0.0
0.75
0.0
1.0
[[ 2.50000000e-01 -2.50000000e-01 -4.99993750e-01 ...,
3.73459082e+01 3.75116710e+01 3.76764961e+01]
[ 5.00000000e-01 -5.00000000e-01 -6.25000000e-06 ...,
-4.99993797e-01 -2.49373966e-03 4.99993766e-01]
[ 7.50000000e-01 -7.50000000e-01 0.00000000e+00 ...,
-7.50000000e-01 0.00000000e+00 7.50000000e-01]
[ 1.00000000e+00 -1.00000000e+00 0.00000000e+00 ...,
-1.00000000e+00 0.00000000e+00 1.00000000e+00]]
5
Apparently Linear Algebra is giving me the output of another program along with
the output for this one. Of course I don't need Linear Algebra to print the
number 5, but I've been trying to make a program that uses Linear Algebra, and
I'm always having the output come out twice each time I run it. When I edit the
program, it always gives me the old output before the new output, even if I
edit it right down to something as simple as "a=5, print a".
Is anybody familiar with this module and why it is doing this? I've used it
before and never had this issue.
-Gerard.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor