def test_interp_values(self): """ Instanciate Chebfun from interpolation values. """ p2 = Chebfun(self.p.values()) npt.assert_almost_equal(self.p.coefficients(), p2.coefficients()) tools.assert_close(self.p, p2)
def test_list_init(self): c = Chebfun([1.]) npt.assert_array_almost_equal(c.coefficients(), np.array([1.]))
def test_list_init(self): c = Chebfun([1.]) npt.assert_array_almost_equal(c.coefficients(),np.array([1.]))