projects
/
TDDE44.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4c5e6
)
change
author
NilsForssen
<forssennils@gmail.com>
Tue, 8 Feb 2022 10:12:31 +0000
(11:12 +0100)
committer
NilsForssen
<forssennils@gmail.com>
Tue, 8 Feb 2022 10:12:31 +0000
(11:12 +0100)
laboration3/uppgift_2.py
patch
|
blob
|
history
diff --git
a/laboration3/uppgift_2.py
b/laboration3/uppgift_2.py
index fafc5f66023d8bad22350688dec27578593d664d..803620c4f723062b1eff4d74b629444da77617af 100644
(file)
--- a/
laboration3/uppgift_2.py
+++ b/
laboration3/uppgift_2.py
@@
-1,8
+1,5
@@
# Uppgift 3
-from matplotlib.pyplot import sca
-
-
def sum_of_ints2(value_list):
tot = 0
for inner in value_list:
@@
-72,9
+69,3
@@
def matrix_square(matrix):
tot[i].append(scalar_product(col, matrix[i]))
return tot
-
-
-print(matrix_square([[1, 2, 4],
- [3, 0, 6],
- [0, 5, 1]]
- ))