[Swift-commit] r6775 - SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Mon Aug 5 17:23:22 CDT 2013
Author: wozniak
Date: 2013-08-05 17:23:22 -0500 (Mon, 05 Aug 2013)
New Revision: 6775
Modified:
SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.py
Log:
Clean up
Modified: SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.py
===================================================================
--- SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.py 2013-08-05 22:16:36 UTC (rev 6774)
+++ SwiftTutorials/ATPESC_2013-08-06/part11-swift-py-r/code/dets.py 2013-08-05 22:23:22 UTC (rev 6775)
@@ -4,11 +4,7 @@
N = 3
U = 7
-s = repr(eye(3))
-print(eval(s)*2)
-
dets = zeros(U-1)
-
for i in range(1,U):
A = ones(N)
A = A + i*eye(N)
@@ -19,6 +15,6 @@
dets[i-1] = abs(d)
print
-print(dets)
-print(max(dets))
+print "dets:", dets
+print "max:", max(dets)
More information about the Swift-commit
mailing list