Beispiel #1
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)
Beispiel #2
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)
Beispiel #3
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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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))