@@ -161,6 +161,10 @@ def testStep(self):
161161 np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
162162 np .testing .assert_array_almost_equal (tout , t )
163163
164+ yout , tout , xout = step (sys , T = t , X0 = 0 , return_x = True )
165+ np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
166+ np .testing .assert_array_almost_equal (tout , t )
167+
164168 #Test MIMO system, which contains ``siso_ss1`` twice
165169 sys = self .mimo_ss1
166170 y_00 , _t = step (sys , T = t , input = 0 , output = 0 )
@@ -188,6 +192,20 @@ def testImpulse(self):
188192 np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
189193 np .testing .assert_array_almost_equal (tout , t )
190194
195+ # Play with arguments
196+ yout , tout = impulse (sys , T = t , X0 = 0 )
197+ np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
198+ np .testing .assert_array_almost_equal (tout , t )
199+
200+ X0 = np .array ([0 , 0 ]);
201+ yout , tout = impulse (sys , T = t , X0 = X0 )
202+ np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
203+ np .testing .assert_array_almost_equal (tout , t )
204+
205+ yout , tout , xout = impulse (sys , T = t , X0 = 0 , return_x = True )
206+ np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
207+ np .testing .assert_array_almost_equal (tout , t )
208+
191209 #Test MIMO system, which contains ``siso_ss1`` twice
192210 sys = self .mimo_ss1
193211 y_00 , _t = impulse (sys , T = t , input = 0 , output = 0 )
@@ -206,6 +224,11 @@ def testInitial(self):
206224 np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
207225 np .testing .assert_array_almost_equal (tout , t )
208226
227+ # Play with arguments
228+ yout , tout , xout = initial (sys , T = t , X0 = x0 , return_x = True )
229+ np .testing .assert_array_almost_equal (yout , youttrue , decimal = 4 )
230+ np .testing .assert_array_almost_equal (tout , t )
231+
209232 #Test MIMO system, which contains ``siso_ss1`` twice
210233 sys = self .mimo_ss1
211234 x0 = np .matrix (".5; 1.; .5; 1." )
0 commit comments