コード例 #1
0
 def test_linear_root(self):
     assert_(herm.hermcompanion([1, 2])[0, 0] == -.25)
コード例 #2
0
ファイル: test_hermite.py プロジェクト: anntzer/numpy
 def test_linear_root(self):
     assert_(herm.hermcompanion([1, 2])[0, 0] == -.25)
コード例 #3
0
 def test_dimensions(self):
     for i in range(1, 5):
         coef = [0] * i + [1]
         assert_(herm.hermcompanion(coef).shape == (i, i))
コード例 #4
0
ファイル: test_hermite.py プロジェクト: anntzer/numpy
 def test_dimensions(self):
     for i in range(1, 5):
         coef = [0]*i + [1]
         assert_(herm.hermcompanion(coef).shape == (i, i))