Skip to content

Commit 32fe9b6

Browse files
committed
fix error in evaluation on break points
1 parent 1474e82 commit 32fe9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/rlocus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _break_points(num, den):
238238
# type: (np.poly1d, np.poly1d) -> (np.array, np.array)
239239
dnum = num.deriv(m=1)
240240
dden = den.deriv(m=1)
241-
brkp = np.poly1d(np.convolve(den, dnum) - np.convolve(num, dden))
241+
brkp = den * dnum - num * dden
242242
real_ax_pts = brkp.r
243243
real_ax_pts = real_ax_pts[np.imag(real_ax_pts) == 0]
244244
real_ax_pts = real_ax_pts[num(real_ax_pts) != 0] # avoid dividing by zero

0 commit comments

Comments
 (0)