<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#3333ff">
<font size="+1">Hi,<br>
<br>
I didn't get nearly as far as you.<br>
<br>
In [2]: from LinearAlgebra import *<br>
---------------------------------------------------------------------------<br>
ImportError Traceback (most recent call
last)<br>
<br>
/home/bermanrl/<ipython console> in <module>()<br>
<br>
ImportError: No module named LinearAlgebra<br>
<br>
In [3]: <br>
<br>
I am running Ubuntu Linux. What OS are yiou running and what version of
Python?<br>
<br>
<br>
Robert Berman<br>
<br>
<br>
</font><br>
Mr Gerard Kelly wrote:
<blockquote
cite="mid:3F23748B015E23448EDE65E6411239F115220FCC68@BL2PRD0101MB010.prod.exchangelabs.com"
type="cite">
<pre wrap="">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 - <a class="moz-txt-link-abbreviated" href="mailto:Tutor@python.org">Tutor@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a>
</pre>
</blockquote>
</body>
</html>