From 80732b29bcddcdd81a985e7376aceedf387ea7a8 Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:10:33 -0400 Subject: [PATCH] Fixed deprecation warning --- Notebooks/Chap01/1_1_BackgroundMathematics.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notebooks/Chap01/1_1_BackgroundMathematics.ipynb b/Notebooks/Chap01/1_1_BackgroundMathematics.ipynb index 3ca132d..9378a08 100644 --- a/Notebooks/Chap01/1_1_BackgroundMathematics.ipynb +++ b/Notebooks/Chap01/1_1_BackgroundMathematics.ipynb @@ -269,7 +269,7 @@ "# Compute with vector/matrix form\n", "y_vec = beta_vec+np.matmul(omega_mat, x_vec)\n", "print(\"Matrix/vector form\")\n", - "print('y1= %3.3f\\ny2 = %3.3f'%((y_vec[0],y_vec[1])))\n" + "print('y1= %3.3f\\ny2 = %3.3f'%((y_vec[0][0],y_vec[1][0])))\n" ] }, {