From: NilsForssen Date: Tue, 8 Feb 2022 10:12:31 +0000 (+0100) Subject: change X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=34131038683f48ea1f86a3e3204b825381d3b5c5;p=TDDE44.git change --- diff --git a/laboration3/uppgift_2.py b/laboration3/uppgift_2.py index fafc5f6..803620c 100644 --- 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]] - ))