summaryrefslogtreecommitdiffstats
path: root/2.py
diff options
context:
space:
mode:
Diffstat (limited to '2.py')
-rw-r--r--2.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/2.py b/2.py
new file mode 100644
index 0000000..2e50ff3
--- /dev/null
+++ b/2.py
@@ -0,0 +1,33 @@
+from libsolve import *
+
+m = Matrix([
+ [1, 1, -1, 1],
+ [-1, -2, 2, -2],
+ [1, 2, -1, 3],
+ [-1, -2, 1, -2]
+])
+
+i = Matrix([
+ [1, 0, 0, 0],
+ [0, 1, 0, 0],
+ [0, 0, 1, 0],
+ [0, 0, 0, 1]
+])
+
+
+for mat in [m, i]:
+ mat.make_S(1, 0, 2)
+ mat.make_S(2, 3, 1)
+ mat.make_U(0, 1)
+ mat.make_U(2, 3)
+ mat.make_S(2, 1, 1)
+ mat.make_S(1, 2, 1)
+ mat.make_S(2, 3, 1)
+ mat.make_S(1, 0, -1)
+ mat.make_U(1, 2)
+ mat.make_D(1, -1)
+ mat.make_D(2, -1)
+
+
+print(m)
+print(i)