def test_linear_root(self):
     assert_(herme.hermecompanion([1, 2])[0, 0] == -.5)
Example #2
0
 def test_linear_root(self):
     assert_(herme.hermecompanion([1, 2])[0, 0] == -.5)
 def test_dimensions(self):
     for i in range(1, 5):
         coef = [0] * i + [1]
         assert_(herme.hermecompanion(coef).shape == (i, i))
Example #4
0
 def test_dimensions(self):
     for i in range(1, 5):
         coef = [0]*i + [1]
         assert_(herme.hermecompanion(coef).shape == (i, i))