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]]])