Skip to content

Commit 9759a83

Browse files
committed
[main] Finished module 2
1 parent 9cb7c19 commit 9759a83

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pythonProblems/matrixpractice/rowreduction.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,40 @@
101101
# - 0.21x - 0.12z = -780
102102

103103
# 2.79x + 0.12z
104+
105+
# mat1 = [[5, 1], [-1, 3]]
106+
107+
# dt_1 = mat1[0][0] * mat1[1][1]
108+
# dt_2 = mat1[0][1] * mat1[1][0]
109+
110+
111+
# print(dt_1 - dt_2)
112+
113+
114+
# mat1 = [[2, -1], [-6, 3]]
115+
116+
# dt_1 = mat1[0][0] * mat1[1][1]
117+
# dt_2 = mat1[0][1] * mat1[1][0]
118+
119+
# print(dt_1 - dt_2)
120+
121+
122+
# mat1 = [[7, 5, 3], [3, 2, 5], [1, 2, 1]]
123+
124+
# dt_1_first = mat1[0][0] * mat1[1][1] * mat1[2][2]
125+
# dt_1_second = mat1[0][1] * mat1[1][2] * mat1[2][0]
126+
# dt_1_third = mat1[0][2] * mat1[1][0] * mat1[2][1]
127+
128+
# dt_anti_1_first = mat1[0][2] * mat1[1][1] * mat1[2][0]
129+
# dt_anti_1_second = mat1[0][1] * mat1[1][0] * mat1[2][2]
130+
# dt_anti_1_third = mat1[0][0] * mat1[1][2] * mat1[2][1]
131+
132+
# dt_1_front = dt_1_first + dt_1_second + dt_1_third
133+
# dt_1_anti = dt_anti_1_first + dt_anti_1_second + dt_anti_1_third
134+
135+
# print(dt_1_front - dt_1_anti)
136+
137+
138+
# 7f + 5a + 3c = 120
139+
# 3f + 2a + 5c = 70
140+
# f + 2a + c = 20

0 commit comments

Comments
 (0)