We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1474e82 commit 32fe9b6Copy full SHA for 32fe9b6
control/rlocus.py
@@ -238,7 +238,7 @@ def _break_points(num, den):
238
# type: (np.poly1d, np.poly1d) -> (np.array, np.array)
239
dnum = num.deriv(m=1)
240
dden = den.deriv(m=1)
241
- brkp = np.poly1d(np.convolve(den, dnum) - np.convolve(num, dden))
+ brkp = den * dnum - num * dden
242
real_ax_pts = brkp.r
243
real_ax_pts = real_ax_pts[np.imag(real_ax_pts) == 0]
244
real_ax_pts = real_ax_pts[num(real_ax_pts) != 0] # avoid dividing by zero
0 commit comments