Skip to content

Commit 4e4b97f

Browse files
committed
forgot to change a variable name everywhere in a function
1 parent b37c16b commit 4e4b97f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

control/xferfcn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ def horner(self, x):
260260
Frequency response
261261
262262
"""
263-
s_arr = np.array(s, ndmin=1) # force to be an array
263+
s_arr = np.array(x, ndmin=1) # force to be an array
264264
out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex)
265265
for i in range(self.outputs):
266266
for j in range(self.inputs):
267-
out[i][j] = (polyval(self.num[i][j], s) /
268-
polyval(self.den[i][j], s))
267+
out[i][j] = (polyval(self.num[i][j], x) /
268+
polyval(self.den[i][j], x))
269269
return out
270270

271271
def _truncatecoeff(self):

0 commit comments

Comments
 (0)