@@ -73,7 +73,7 @@ def h2syn(P, nmeas, ncon):
7373 --------
7474 >>> # Unstable first order SISI system
7575 >>> G = ct.tf([1], [1, -1], inputs=['u'], outputs=['y'])
76- >>> max (G.poles()) < 0 # Is G stable?
76+ >>> all (G.poles() < 0) # Is G stable?
7777 False
7878
7979 >>> # Create partitioned system with trivial unity systems
@@ -87,7 +87,7 @@ def h2syn(P, nmeas, ncon):
8787 >>> # Synthesize H2 optimal stabilizing controller
8888 >>> K = ct.h2syn(P, nmeas=1, ncon=1)
8989 >>> T = ct.feedback(G, K, sign=1)
90- >>> max (T.poles()) < 0 # Is T stable?
90+ >>> all (T.poles() < 0) # Is T stable?
9191 True
9292
9393 """
@@ -154,7 +154,7 @@ def hinfsyn(P, nmeas, ncon):
154154 --------
155155 >>> # Unstable first order SISI system
156156 >>> G = ct.tf([1], [1,-1], inputs=['u'], outputs=['y'])
157- >>> max (G.poles()) < 0
157+ >>> all (G.poles() < 0)
158158 False
159159
160160 >>> # Create partitioned system with trivial unity systems
@@ -167,7 +167,7 @@ def hinfsyn(P, nmeas, ncon):
167167 >>> # Synthesize Hinf optimal stabilizing controller
168168 >>> K, CL, gam, rcond = ct.hinfsyn(P, nmeas=1, ncon=1)
169169 >>> T = ct.feedback(G, K, sign=1)
170- >>> max (T.poles()) < 0
170+ >>> all (T.poles() < 0)
171171 True
172172
173173 """
0 commit comments