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)
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)
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)
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))