We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b37c16b commit 4e4b97fCopy full SHA for 4e4b97f
1 file changed
control/xferfcn.py
@@ -260,12 +260,12 @@ def horner(self, x):
260
Frequency response
261
262
"""
263
- s_arr = np.array(s, ndmin=1) # force to be an array
+ s_arr = np.array(x, ndmin=1) # force to be an array
264
out = empty((self.outputs, self.inputs, len(s_arr)), dtype=complex)
265
for i in range(self.outputs):
266
for j in range(self.inputs):
267
- out[i][j] = (polyval(self.num[i][j], s) /
268
- polyval(self.den[i][j], s))
+ out[i][j] = (polyval(self.num[i][j], x) /
+ polyval(self.den[i][j], x))
269
return out
270
271
def _truncatecoeff(self):
0 commit comments