renamed the exact funcs
This commit is contained in:
parent
052af650e9
commit
8557394a51
@ -16,7 +16,7 @@ def rms(errors):
|
|||||||
r = np.sqrt(r / len(errors))
|
r = np.sqrt(r / len(errors))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def exact_func(X):
|
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)
|
||||||
"""
|
"""
|
||||||
@ -25,7 +25,7 @@ def exact_func(X):
|
|||||||
log.debug(answer)
|
log.debug(answer)
|
||||||
return answer
|
return answer
|
||||||
|
|
||||||
def exact2D(X):
|
def friendly_exact_2D(X):
|
||||||
"""
|
"""
|
||||||
A friendlier 2D func
|
A friendlier 2D func
|
||||||
"""
|
"""
|
||||||
@ -34,7 +34,7 @@ def exact2D(X):
|
|||||||
log.debug(answer)
|
log.debug(answer)
|
||||||
return answer
|
return answer
|
||||||
|
|
||||||
def exact_func_3D(X):
|
def baker_exact_3D(X):
|
||||||
"""
|
"""
|
||||||
the exact function (3D) used from baker's article (for testing)
|
the exact function (3D) used from baker's article (for testing)
|
||||||
"""
|
"""
|
||||||
@ -45,7 +45,7 @@ def exact_func_3D(X):
|
|||||||
log.debug(answer)
|
log.debug(answer)
|
||||||
return answer
|
return answer
|
||||||
|
|
||||||
def exact(X):
|
def friendly_exact_3D(X):
|
||||||
x,y,z = X
|
x,y,z = X
|
||||||
return 1 + x*x + y*y + z*z
|
return 1 + x*x + y*y + z*z
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user