Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def test_list_init(self):
     c = Chebfun([1.])
     npt.assert_array_almost_equal(c.coefficients(), np.array([1.]))
Пример #4
0
 def test_list_init(self):
     c = Chebfun([1.])
     npt.assert_array_almost_equal(c.coefficients(),np.array([1.]))