コード例 #1
0
ファイル: test_numeric.py プロジェクト: jszymon/pacal
 def testCheb(self):
     c = ChebyshevInterpolator(cauchy, -2, 2)
     y = c.interp_at(self.x)
     #print self.x,y
     #plot(self.x, y)
     self.assertTrue(0 < 1)
コード例 #2
0
ファイル: test_numeric.py プロジェクト: jszymon/pacal
 def testChebMat(self):
     c = ChebyshevInterpolator(cauchy, -2, 2)
     y = c.interp_at(self.x_mat)
     #print self.x_mat
     #print y
     self.assertTrue(0 < 1)
コード例 #3
0
ファイル: test_numeric.py プロジェクト: jszymon/pacal
 def testChebFor(self):
     c = ChebyshevInterpolator(cauchy, -2, 2)
     y = [c.interp_at(x) for x in self.x]
     #print self.x,y
     #plot(self.x, y)
     self.assertTrue(0 < 1)
コード例 #4
0
 def testChebMat(self):
     c = ChebyshevInterpolator(cauchy, -2, 2)
     y = c.interp_at(self.x_mat)
     #print self.x_mat
     #print y
     self.assertTrue(0 < 1)
コード例 #5
0
 def testCheb(self):
     c = ChebyshevInterpolator(cauchy, -2, 2)
     y = c.interp_at(self.x)
     #print self.x,y
     #plot(self.x, y)
     self.assertTrue(0 < 1)
コード例 #6
0
 def testChebFor(self):
     c = ChebyshevInterpolator(cauchy, -2, 2)
     y = [c.interp_at(x) for x in self.x]
     #print self.x,y
     #plot(self.x, y)
     self.assertTrue(0 < 1)
コード例 #7
0
 def testBasicInterp(self):
     """Test basic Chebyshev interpolation on finite interval."""
     ci = ChebyshevInterpolator(cos, -2, 8)
     X = linspace(-2, 8, 1000)
     err = self.get_max_diff(X, cos, ci)
     self.assertTrue(err < self.tol, self._str_error(err, ci))