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 d26d639 commit 712f78aCopy full SHA for 712f78a
control/xferfcn.py
@@ -874,8 +874,10 @@ def _common_den(self, imag_tol=None):
874
currentpoles = poleset[i][j][1]
875
nothave = ones(currentpoles.shape, dtype=bool)
876
for ip, p in enumerate(poles[j]):
877
- collect = ((abs(currentpoles.real - p.real) < real_tol) &
878
- (abs(currentpoles.imag - p.imag) < imag_tol) &
+ collect = (np.isclose(currentpoles.real, p.real,
+ atol=real_tol) &
879
+ np.isclose(currentpoles.imag, p.imag,
880
+ atol=imag_tol) &
881
nothave)
882
if np.any(collect):
883
# mark first found pole as already collected
0 commit comments