From 55426d22b8430b7cd420d8ce6e5b995ab1fe5e11 Mon Sep 17 00:00:00 2001 From: nandard Date: Thu, 8 Sep 2022 11:59:19 +0700 Subject: [PATCH] Revision --- 442385_Nanda_Sisken_Assign_3.ipynb | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/442385_Nanda_Sisken_Assign_3.ipynb b/442385_Nanda_Sisken_Assign_3.ipynb index 2244a37..212dde0 100644 --- a/442385_Nanda_Sisken_Assign_3.ipynb +++ b/442385_Nanda_Sisken_Assign_3.ipynb @@ -46,7 +46,7 @@ "\n", " for i in range(2, height+2):\n", " for j in range(height-1):\n", - " arr[i][j] = (arr[i-1][0]*arr[i-2][j+1] - arr[i-2][0]*arr[i-1][j+1])//2\n", + " arr[i][j] = (arr[i-1][0]*arr[i-2][j+1] - arr[i-2][0]*arr[i-1][j+1])/arr[i-1][0]\n", " arr[i][j] += 0\n", " \n", " self.df = pd.DataFrame(arr)\n", diff --git a/README.md b/README.md index cde9ff6..0599caa 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ def calc_routh(self): for i in range(2, height+2): for j in range(height-1): - arr[i][j] = (arr[i-1][0]*arr[i-2][j+1] - arr[i-2][0]*arr[i-1][j+1])//2 + arr[i][j] = (arr[i-1][0]*arr[i-2][j+1] - arr[i-2][0]*arr[i-1][j+1])/arr[i-1][0] arr[i][j] += 0 self.df = pd.DataFrame(arr)