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 2959df8 commit 6aee194Copy full SHA for 6aee194
control/tests/statesp_test.py
@@ -32,12 +32,13 @@ def setUp(self):
32
def testPole(self):
33
"""Evaluate the poles of a MIMO system."""
34
35
- p = self.sys1.pole()
36
-
37
- np.testing.assert_array_almost_equal(p, [3.34747678408874,
+ p = np.sort(self.sys1.pole())
+ true_p = np.sort([3.34747678408874,
38
-3.17373839204437 + 1.47492908003839j,
39
-3.17373839204437 - 1.47492908003839j])
40
+ np.testing.assert_array_almost_equal(p, true_p)
41
+
42
def testZero(self):
43
"""Evaluate the zeros of a SISO system."""
44
0 commit comments