diff --git a/test/2dquadratic.py b/test/2dquadratic.py index f93f2ed..b18d2b8 100755 --- a/test/2dquadratic.py +++ b/test/2dquadratic.py @@ -12,7 +12,7 @@ from interp.grid.simplex import contains def exact_func(X): x = X[0] y = X[0] - return 1 - math.sin((x-0.5)**2 + (y-0.5)**2) + return 1 - x*x + y*y class TestSequenceFunctions(unittest.TestCase): def setUp(self): diff --git a/test/baker2dorder.py b/test/baker2dorder.py index dcddfe4..9ca1d4b 100755 --- a/test/baker2dorder.py +++ b/test/baker2dorder.py @@ -9,7 +9,9 @@ import numpy as np from interp.grid.simplex import contains def exact_func(point): - return 0.5 + point[0] * point[1] + x = point[0] + y = point[1] + return 0.5 + x*x + y def calculate_error_term(self, a,b,c,d,e,f): B = np.array([