From 00b564880a3a2a666dab33bd8d4b121ecc09aedb Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Sun, 29 May 2011 13:22:44 -0600 Subject: [PATCH] just realized my 2D function is good, but isn't exactly the function used by Baker --- interp/tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/interp/tools.py b/interp/tools.py index 2a9a9b4..fa91dc1 100644 --- a/interp/tools.py +++ b/interp/tools.py @@ -22,9 +22,13 @@ def rms(errors): def baker_exact_2D(X): """ - the exact function (2D) used from baker's article (for testing) + the exact function (2D) used from baker's article (for testing, slightly + modified) """ x ,y = X + + # TODO: this is not baker's function!! this is: + # np.power(np.sin(x*np.pi/2.0) * np.sin(y*np.pi/2.0),2) answer = np.power((np.sin(x * np.pi) * np.cos(y * np.pi)), 2) log.debug(answer) return answer