testing other equations

This commit is contained in:
Stephen McQuay 2011-02-03 09:45:11 -07:00
parent 6bfaa20d40
commit c34f9c911a
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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([