[Tutor] Linear Algebra weirdness
Mr Gerard Kelly
gerard.kelly at uqconnect.edu.au
Thu Feb 26 06:32:30 CET 2009
I am getting some very strange behaviour from the Linear Algebra module.
Look at this code:
from LinearAlgebra import *
And look at the output that I get when I run it:
[[ 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]]
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.
More information about the Tutor