@@ -42,16 +42,16 @@ def canonical_form(xsys, form='reachable'):
42
42
--------
43
43
>>> Gs = ct.tf2ss([1], [1, 3, 2])
44
44
>>> Gc, T = ct.canonical_form(Gs) # default reachable
45
- >>> Gc.B.round()
45
+ >>> Gc.B
46
46
array([[1.],
47
47
[0.]])
48
48
49
49
>>> Gc, T = ct.canonical_form(Gs, 'observable')
50
- >>> Gc.C.round()
50
+ >>> Gc.C
51
51
array([[1., 0.]])
52
52
53
53
>>> Gc, T = ct.canonical_form(Gs, 'modal')
54
- >>> Gc.A.round() # doctest: +SKIP
54
+ >>> Gc.A
55
55
array([[-2., 0.],
56
56
[ 0., -1.]])
57
57
@@ -89,7 +89,7 @@ def reachable_form(xsys):
89
89
--------
90
90
>>> Gs = ct.tf2ss([1], [1, 3, 2])
91
91
>>> Gc, T = ct.reachable_form(Gs) # default reachable
92
- >>> Gc.B.round()
92
+ >>> Gc.B
93
93
array([[1.],
94
94
[0.]])
95
95
@@ -152,7 +152,7 @@ def observable_form(xsys):
152
152
--------
153
153
>>> Gs = ct.tf2ss([1], [1, 3, 2])
154
154
>>> Gc, T = ct.observable_form(Gs)
155
- >>> Gc.C.round()
155
+ >>> Gc.C
156
156
array([[1., 0.]])
157
157
158
158
"""
@@ -217,13 +217,13 @@ def similarity_transform(xsys, T, timescale=1, inverse=False):
217
217
Examples
218
218
--------
219
219
>>> Gs = ct.tf2ss([1], [1, 3, 2])
220
- >>> Gs.A.round()
220
+ >>> Gs.A
221
221
array([[-3., -2.],
222
222
[ 1., 0.]])
223
223
224
224
>>> T = np.array([[0, 1], [1, 0]])
225
225
>>> Gt = ct.similarity_transform(Gs, T)
226
- >>> Gt.A.round()
226
+ >>> Gt.A
227
227
array([[ 0., 1.],
228
228
[-2., -3.]])
229
229
@@ -508,7 +508,7 @@ def modal_form(xsys, condmax=None, sort=False):
508
508
--------
509
509
>>> Gs = ct.tf2ss([1], [1, 3, 2])
510
510
>>> Gc, T = ct.modal_form(Gs) # default reachable
511
- >>> Gc.A.round() # doctest: +SKIP
511
+ >>> Gc.A
512
512
array([[-2., 0.],
513
513
[ 0., -1.]])
514
514
0 commit comments