예제 #1
0
 def test_chebmulx(self):
     assert_equal(cheb.chebmulx([0]), [0])
     assert_equal(cheb.chebmulx([1]), [0,1])
     for i in range(1, 5):
         ser = [0]*i + [1]
         tgt = [0]*(i - 1) + [.5, 0, .5]
         assert_equal(cheb.chebmulx(ser), tgt)
예제 #2
0
 def test_chebmulx(self):
     assert_equal(cheb.chebmulx([0]), [0])
     assert_equal(cheb.chebmulx([1]), [0, 1])
     for i in range(1, 5):
         ser = [0]*i + [1]
         tgt = [0]*(i - 1) + [.5, 0, .5]
         assert_equal(cheb.chebmulx(ser), tgt)
예제 #3
0
파일: __init__.py 프로젝트: Bankq/CS6998
def chebmulx(cs):
    from numpy.polynomial.chebyshev import chebmulx
    return chebmulx(cs)
예제 #4
0
파일: __init__.py 프로젝트: 1950/sawbuck
def chebmulx(cs):
    from numpy.polynomial.chebyshev import chebmulx
    return chebmulx(cs)
예제 #5
0
def xmul(self, x):
    return np_cheb.chebmulx(x)