diff --git a/roman_schenk_S1_Aufg2.py b/roman_schenk_S1_Aufg2.py index e976508..789226b 100644 --- a/roman_schenk_S1_Aufg2.py +++ b/roman_schenk_S1_Aufg2.py @@ -15,11 +15,9 @@ def showPlot(xmin, xmax, xsteps): plt.show() def polynom_function(coefficients, x): - n = len(coefficients) - 1 result = 0 for power, coefficient in enumerate(coefficients): result += coefficient * x ** power - power += 1 return result def plot_polynom_function(coefficients, xmin, xmax, xsteps):