From cd88f40805c2dabb83a70d333534961132694b75 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 17 Nov 2022 18:41:15 +0100 Subject: [PATCH] Solved Task 3 --- Schenk_Brandenberger_S7_Aufg3.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Schenk_Brandenberger_S7_Aufg3.py b/Schenk_Brandenberger_S7_Aufg3.py index 24b7553..e2396fb 100644 --- a/Schenk_Brandenberger_S7_Aufg3.py +++ b/Schenk_Brandenberger_S7_Aufg3.py @@ -10,11 +10,13 @@ if __name__ == '__main__': x = np.array([0, 2, 9, 13]) y = np.array([150, 104, 172, 152]) - A = np.array([[x[0]**3, x[0]**2, x[0]**1, x[0]**0], + A = np.array([ + [x[0]**3, x[0]**2, x[0]**1, x[0]**0], [x[1]**3, x[1]**2, x[1]**1, x[1]**0], [x[2]**3, x[2]**2, x[2]**1, x[2]**0], [x[3]**3, x[3]**2, x[3]**1, x[3]**0]]) - b = np.array([[y[0]], + b = np.array([ + [y[0]], [y[1]], [y[2]], [y[3]]])