コード例 #1
0
ファイル: test_legendre.py プロジェクト: EmployInsight/numpy
 def test_weight(self):
     x = np.linspace(-1, 1, 11)
     tgt = 1.
     res = leg.legweight(x)
     assert_almost_equal(res, tgt)
コード例 #2
0
ファイル: test_legendre.py プロジェクト: myneuronews/flbrh
 def test_weight(self):
     x = np.linspace(-1, 1, 11)
     tgt = 1.
     res = leg.legweight(x)
     assert_almost_equal(res, tgt)