From c34f9c911ab062416f8cefb7a22c8bbe6f4018c8 Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Thu, 3 Feb 2011 09:45:11 -0700 Subject: [PATCH] testing other equations --- test/2dquadratic.py | 2 +- test/baker2dorder.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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([