示例#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)