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