Merge pull request #941 from Jpickard1/main · python-control/python-control@82f3fe3

@@ -49,6 +49,14 @@ def testCtrbMIMO(self):

4949

Wc = ctrb(A, B)

5050

np.testing.assert_array_almost_equal(Wc, Wctrue)

515152+

def testCtrbT(self):

53+

A = np.array([[1., 2.], [3., 4.]])

54+

B = np.array([[5., 6.], [7., 8.]])

55+

t = 1

56+

Wctrue = np.array([[5., 6.], [7., 8.]])

57+

Wc = ctrb(A, B, t=t)

58+

np.testing.assert_array_almost_equal(Wc, Wctrue)

59+5260

def testObsvSISO(self):

5361

A = np.array([[1., 2.], [3., 4.]])

5462

C = np.array([[5., 7.]])

@@ -62,6 +70,14 @@ def testObsvMIMO(self):

6270

Wotrue = np.array([[5., 6.], [7., 8.], [23., 34.], [31., 46.]])

6371

Wo = obsv(A, C)

6472

np.testing.assert_array_almost_equal(Wo, Wotrue)

73+74+

def testObsvT(self):

75+

A = np.array([[1., 2.], [3., 4.]])

76+

C = np.array([[5., 6.], [7., 8.]])

77+

t = 1

78+

Wotrue = np.array([[5., 6.], [7., 8.]])

79+

Wo = obsv(A, C, t=t)

80+

np.testing.assert_array_almost_equal(Wo, Wotrue)

65816682

def testCtrbObsvDuality(self):

6783

A = np.array([[1.2, -2.3], [3.4, -4.5]])