Commit a0b3acfd authored by Adam Blank's avatar Adam Blank
Browse files

fix func -> func_name for clarity

parent 5f83d117
Showing with 4 additions and 4 deletions
+4 -4
...@@ -13,7 +13,7 @@ def nth_derivative(func, n): ...@@ -13,7 +13,7 @@ def nth_derivative(func, n):
return None return None
@cache @cache
def taylor(func, x, N): def taylor(func_name, x, N):
""" """
Returns the taylor expansion of func as a function of x, centered at 'b'. Returns the taylor expansion of func as a function of x, centered at 'b'.
Since the 0th term is just the function itself (which we don't have the answer for yet), Since the 0th term is just the function itself (which we don't have the answer for yet),
...@@ -23,13 +23,13 @@ def taylor(func, x, N): ...@@ -23,13 +23,13 @@ def taylor(func, x, N):
""" """
return None return None
def taylor_at(func, b, f_at_b, N): def taylor_at(func_name, b, f_at_b, N):
""" """
Returns taylor(-), evaluated by plugging in f_at_b for 'q' and b for 'b'. Returns taylor(-), evaluated by plugging in f_at_b for 'q' and b for 'b'.
""" """
return None return None
def max_error(func, a, x, n): def max_error(func_name, a, x, n):
""" """
Calculates the maximum error of the estimate below using Taylor's Theorem Calculates the maximum error of the estimate below using Taylor's Theorem
in the following way. in the following way.
...@@ -53,7 +53,7 @@ def max_error(func, a, x, n): ...@@ -53,7 +53,7 @@ def max_error(func, a, x, n):
return None return None
@cache @cache
def estimate(func, x, a, func_at_a, N): def estimate(func_name, x, a, func_at_a, N):
""" """
Uses the taylor expansion centered around a to compute an estimate for func(x). Uses the taylor expansion centered around a to compute an estimate for func(x).
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment