mirror of
https://github.com/gabrielkheisa/control-system.git
synced 2024-11-23 20:03:22 +07:00
Revision
This commit is contained in:
parent
43c51ab2b5
commit
55426d22b8
@ -46,7 +46,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" for i in range(2, height+2):\n",
|
" for i in range(2, height+2):\n",
|
||||||
" for j in range(height-1):\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",
|
" arr[i][j] += 0\n",
|
||||||
" \n",
|
" \n",
|
||||||
" self.df = pd.DataFrame(arr)\n",
|
" self.df = pd.DataFrame(arr)\n",
|
||||||
|
@ -36,7 +36,7 @@ def calc_routh(self):
|
|||||||
|
|
||||||
for i in range(2, height+2):
|
for i in range(2, height+2):
|
||||||
for j in range(height-1):
|
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
|
arr[i][j] += 0
|
||||||
|
|
||||||
self.df = pd.DataFrame(arr)
|
self.df = pd.DataFrame(arr)
|
||||||
|
Loading…
Reference in New Issue
Block a user