Skip to content
Snippets Groups Projects
Commit 4408ced3 authored by iliya.saroukha's avatar iliya.saroukha :first_quarter_moon:
Browse files

fix: getting last element of array

parent cec27772
Branches
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ print(f"valeur de la fonction en a et b: {SD.f(SD.a), SD.f(SD.b)}")
def errmax_taylor(plot_range, eval_pt):
return (SD.Maximal_derivatives_values[len(SD.Maximal_derivatives_values) - 1] /
return (SD.Maximal_derivatives_values[-1] /
math.factorial(len(SD.Maximal_derivatives_values) + 1)) * \
(plot_range - eval_pt)**(len(SD.Maximal_derivatives_values) + 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment