aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--csci1913/lab1/lab1_strap012.py2
-rw-r--r--math2373/lab2.txt60
2 files changed, 2 insertions, 60 deletions
diff --git a/csci1913/lab1/lab1_strap012.py b/csci1913/lab1/lab1_strap012.py
index 0150b0c..582c3be 100644
--- a/csci1913/lab1/lab1_strap012.py
+++ b/csci1913/lab1/lab1_strap012.py
@@ -54,7 +54,7 @@ if left(q) is v:
return q
else:
if op(left(q)) in dispatcher:
- newQ= dispatcher[op(left(q))](v,q)
+ newQ=dispatcher[op(left(q))](v,q)
else:
raise ValueError
return solving(v,newQ)
diff --git a/math2373/lab2.txt b/math2373/lab2.txt
index dbd27c5..689a36b 100644
--- a/math2373/lab2.txt
+++ b/math2373/lab2.txt
@@ -9,14 +9,6 @@ A =
3 -8 1 0 29
-Aog=A
-
-Aog =
-
- 2 -1 4 -5 19
- -1 3 -2 -1 -18
- 0 1 5 -6 12
- 3 -8 1 0 29
A(1,:)=A(1,:)+A(2,:)
@@ -27,50 +19,6 @@ A =
0 1 5 -6 12
3 -8 1 0 29
-A(2,:)=A(1,:)+A(1,:)
-
-A =
-
- 1 2 2 -6 1
- 2 4 4 -12 2
- 0 1 5 -6 12
- 3 -8 1 0 29
-
-A(2,:)=A(1,:)-A(1,:)
-
-A =
-
- 1 2 2 -6 1
- 0 0 0 0 0
- 0 1 5 -6 12
- 3 -8 1 0 29
-
-A(2,:)=A(1,:)-A(1,:)
-
-A =
-
- 1 2 2 -6 1
- 0 0 0 0 0
- 0 1 5 -6 12
- 3 -8 1 0 29
-
-A=Aog
-
-A =
-
- 2 -1 4 -5 19
- -1 3 -2 -1 -18
- 0 1 5 -6 12
- 3 -8 1 0 29
-
-A(1,:)=A(1,:)+A(2,:)
-
-A =
-
- 1 2 2 -6 1
- -1 3 -2 -1 -18
- 0 1 5 -6 12
- 3 -8 1 0 29
A(2,:)=A(2,:)+A(1,:)
@@ -108,13 +56,7 @@ A =
0 0 -25 23 -77
0 -14 -5 18 26
-A(4,:)=A(2,:)1*4*A(2,:)
- A(4,:)=A(2,:)1*4*A(2,:)
- ↑
-{Error: Invalid expression. Check for missing multiplication operator, missing or
-unbalanced delimiters, or other syntax error. To construct matrices, use brackets
-instead of parentheses.
-}
+
A(4,:)=A(2,:)+14*A(2,:)
A =